+ Reply to Thread
Results 1 to 2 of 2

Microsoft Query - Set .Name Range with Scope = Workbook in the QueryTables.Add command

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Microsoft Query - Set .Name Range with Scope = Workbook in the QueryTables.Add command

    Hello, I would like to have the .Name (which is created automatically in Name Manager) with QueryTables.Add command to have scope = Workbook, the way it is creating on below code it is Sheet scope (Local) only. This way, I am unable to reference this .Name created in a Pivot Table.

    Here is the code I am using:
    Please Login or Register  to view this content.

    So, in the above code the .Name is set in Name Manager is created with
    Please Login or Register  to view this content.

    Can anyone help me, please?

    Thanks!!
    Last edited by trizzo; 05-27-2020 at 04:40 PM.

  2. #2
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2007 & 2013
    Posts
    268

    Re: Microsoft Query - Set .Name Range with Scope = Workbook in the QueryTables.Add command

    Thanks guys! I found an workaround!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 3
    Last Post: 09-22-2015, 11:23 AM
  2. Excel Command button to open a Microsoft Access query
    By Bineyo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-16-2012, 04:31 PM
  3. QueryTables command for all queries in an excel sheet
    By mmf in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-26-2008, 06:37 AM
  4. [SOLVED] [SOLVED] Works in Microsoft Query, but not with QueryTables
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2006, 09:25 AM
  5. QueryTables command
    By Sharlene England in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-04-2006, 08:10 PM
  6. How do i create a command button or macro to exit Microsoft Excel
    By raj in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-30-2005, 10:06 AM
  7. Waiting for Microsoft Excel to Accept DDE Command
    By Kirbroses in forum Excel General
    Replies: 0
    Last Post: 01-26-2005, 12:56 PM

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