Results 1 to 5 of 5
  1. #1
    OldCityCat is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    33

    Export to Excel Structured Table

    Does anyone know if you can use "DoCmd.TransferSpreadsheet acExport," to put data into a Excel 2007 Named Table/Structured Table" in rather the a Named Range?




    Thanks in advance for any and all suggestions


    OldCityCat

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Don't understand. What is "Named Table/Structured Table". I have never used a named range in any exports to Excel.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    OldCityCat is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    33
    It's a new feature in Excel 2007 and some know it as a Named Table others as a Structured Table in Excel 2007 - basically it'a range that converted to a table.
    When using the DoCmd.TransferSpreadsheet acExport, acSpreadsheetTypeExcel9, "QueryName", "C:\Test.xls",, "MyName"
    the last argument can be a Named Range.
    So you only export data to just that range. It new to me as well I just started using it.
    Hop this helps

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Actually, I never used TransferSpreadsheet. I have only one procedure for export and it is updating an existing spreadsheet and the data is not within a continuous range. I have another procedure behind an Excel workbook that pulls data from Access.

    You seem to have opened a new can of worms. I can't find anything besides your crossposts on other forums regarding this issue. Have you tried it?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    OldCityCat is offline Advanced Beginner
    Windows 7 Access 2007
    Join Date
    Aug 2010
    Posts
    33
    Yes, I'm using it with a Named Range, was trying to use a Named Table and that where I had issues.

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

Similar Threads

  1. trying to export table data tpo Excel
    By itm in forum Access
    Replies: 2
    Last Post: 01-30-2012, 10:44 AM
  2. Error when trying to export from table to Excel
    By tobinjames in forum Import/Export Data
    Replies: 3
    Last Post: 12-15-2011, 02:55 PM
  3. Export table to excel using excel template
    By allenjasonbrown@gmail.com in forum Programming
    Replies: 1
    Last Post: 06-27-2011, 02:10 AM
  4. Export Pivot table to Excel Error
    By Whalen16 in forum Import/Export Data
    Replies: 3
    Last Post: 09-30-2010, 12:54 PM
  5. Export Access Pivot Table to Excel
    By graviz in forum Programming
    Replies: 1
    Last Post: 11-13-2009, 07:30 AM

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