Results 1 to 3 of 3
  1. #1
    baba is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    43

    Copy Accessdata into Excel tabs

    How to open a pre filled excel template in read and write mode from msaccess vba and insert data from msaccess tables


    into specific columns in excel.
    Rename the tabs in excel sheet based on a specific column in the access data.
    Each row in the table will go to a seperate tab in excel.
    Save the excel template after populating the necessary data into different tabs.

    Thankyou !

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You will need to reference the Microsoft Excel XX.0 Object Library. Then, you would begin by using code similar to this.

    Code:
    Dim xlApp As New Excel.Application
    Dim myBook As Workbook
    Dim mySheet As Worksheet
    Dim myShape As Shape
     
    Set myBook = xlApp.Workbooks.Add
    Set mySheet = myBook.Worksheets(1)
    mySheet.Name = "SheetName"

  3. #3
    baba is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Nov 2011
    Posts
    43
    Thank you so much referencing to Excel is the key

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 05-16-2013, 07:43 PM
  2. TransferSpreadsheet to Excel (Multiple Tabs)
    By smoothlarryhughes in forum Import/Export Data
    Replies: 9
    Last Post: 11-10-2012, 12:59 PM
  3. Export Queries to Excel tabs with Save as Dialog box
    By deepanadhi in forum Import/Export Data
    Replies: 1
    Last Post: 05-16-2012, 10:36 AM
  4. Display MULTIPLE tabs on EXCEL output from FORM
    By taimysho0 in forum Programming
    Replies: 8
    Last Post: 12-12-2011, 02:07 PM
  5. Export Filtered Results to Excel Tabs
    By opod in forum Programming
    Replies: 1
    Last Post: 08-03-2011, 01:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums