+ Reply to Thread
Results 1 to 3 of 3

Refer dynamically to a table named range in VBA

  1. #1
    Registered User
    Join Date
    07-02-2017
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    7

    Refer dynamically to a table named range in VBA

    Hello everybody, I am joining the forum for the first time. Hope to learn a lot from everybody and exchange useful information.

    With Excel 2013 we can use Tables just as named ranges.

    I am trying to refer to the Table "Extract". However, this table name may change in the future. As such, I would like to register it once as a public variable then refer to the public variable name for the rest of the Module. An example is the following:

    Please Login or Register  to view this content.
    However I get syntax error.

    Could somebody help me? Thanks!

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Refer dynamically to a table named range in VBA

    Something like
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: Refer dynamically to a table named range in VBA

    Please Login or Register  to view this content.

    here's a helpful link to help explain ListObjects in Excel Tables
    Last edited by kev_; 07-02-2017 at 02:40 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

+ 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. Dynamically refer to a table in a worksheet index/match function
    By Jerbinator in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2016, 09:05 AM
  2. [SOLVED] What happens when I refer to a named range?
    By RogeratCCCC in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 04-21-2012, 04:06 PM
  3. VBA Refer to named range in different workbook
    By globalpontoon in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-07-2010, 03:20 AM
  4. Refer to named range in another file
    By Bob@Sun in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-04-2010, 01:22 PM
  5. Refer indirectly to named range
    By chartguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-16-2009, 12:50 PM
  6. [SOLVED] How does one refer to the n-1 element of a named range?
    By Charles Hewitt in forum Excel General
    Replies: 2
    Last Post: 11-26-2005, 03:00 AM
  7. how do I refer to a multi-sheet named range
    By dlh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-08-2005, 02:05 AM

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