+ Reply to Thread
Results 1 to 3 of 3

Import Named Range from multiple Excel Workbooks

  1. #1
    Registered User
    Join Date
    01-24-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2007
    Posts
    76

    Import Named Range from multiple Excel Workbooks

    I have 50 of the same excel workbooks. These workbooks have named range I need to import into my Access Database. I have the code figured out to import all workbooks from a specific directory, but I need to import only the named range of each workbook. I don't know where in the code I can put that command.

    The named Range is "Import_2013_1st_Qtr"

    Here is the code I have now:

    Please Login or Register  to view this content.
    Any assistance would be great.... Thankyou

  2. #2
    Forum Contributor
    Join Date
    05-05-2009
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010 and 365
    Posts
    113

    Re: Import Named Range from multiple Excel Workbooks

    Wild guess...

    Try adding a number sign (hashtag) and the named range after the file path.

    Rather than "C:Myfile.xls"


    Try "C:Myfile.xls#Import_2013_1st_Qtr"

    If that doesn't work, maybe try an exclamation point instead of a number sign.

  3. #3
    Forum Contributor
    Join Date
    05-05-2009
    Location
    Wisconsin
    MS-Off Ver
    Excel 2010 and 365
    Posts
    113

    Re: Import Named Range from multiple Excel Workbooks

    Or try

    filename#{sheetName}!{Range}


    (omit brackets).

    That's how hyperlinks work. Can be "A1" range notation or named range. Not sure if access import uses same syntax but might be worth a try.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1