Results 1 to 2 of 2
  1. #1
    Palhay is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2012
    Posts
    1

    Importing Excel

    I am trying to import a sheet from excel daily with the external data - saved imports tab in Access 2010 the problem is the sheet name changes daily to reflect the days date.

  2. #2
    JoeM is offline VIP
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    3,904
    You can program it in VBA so it uses today's date in determining which tab to import, i.e.
    Code:
        Dim mySheetName As String
    
    '   Import the tab named with today's date in mm-dd-yyyy format
        mySheetName = Format(Date, "mm-dd-yyyy")
        DoCmd.TransferSpreadsheet acImport, 10, "MyTable", "C:\C\MyImportFile.xlsx", True, mySheetName & "!"

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

Similar Threads

  1. Importing problems from Excel
    By ChrisNWV in forum Import/Export Data
    Replies: 3
    Last Post: 07-24-2012, 11:35 AM
  2. Need Help about importing from Excel
    By Nicc V in forum Access
    Replies: 6
    Last Post: 12-12-2011, 03:11 PM
  3. Importing from Excel
    By itm in forum Import/Export Data
    Replies: 1
    Last Post: 07-20-2011, 07:12 PM
  4. Importing Excel into Access
    By Nel1975 in forum Access
    Replies: 3
    Last Post: 12-30-2009, 10:21 AM
  5. Importing from Excel
    By joer in forum Forms
    Replies: 0
    Last Post: 03-14-2007, 02:01 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