+ Reply to Thread
Results 1 to 5 of 5

Assign existing named table to list object in macro

  1. #1
    Registered User
    Join Date
    06-29-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    43

    Assign existing named table to list object in macro

    Hi,

    I have a data table in Excel that I'm trying to assign to a list object in a macro for the purpose of setting up some buttons to control filtering. How can I declare the table name to be a specific list object?

    Thanks in advance!

  2. #2
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,216

    Re: Assign existing named table to list object in macro

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  3. #3
    Registered User
    Join Date
    06-29-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    43

    Re: Assign existing named table to list object in macro

    Thanks for the quick response. I tried declaring the table using the following lines:
    Please Login or Register  to view this content.
    but I'm getting an error of Run-time error '424': Object Required. "GL" is my sheet name and "GL_Data" is my table name.

  4. #4
    Registered User
    Join Date
    06-29-2017
    Location
    Los Angeles, CA
    MS-Off Ver
    2010
    Posts
    43

    Re: Assign existing named table to list object in macro

    Figured it out. I guess you can't use the changed name of a sheet, but rather the actual sheet name as in "Sheet[#]" when referencing them. Thanks again for the help.

  5. #5
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,216

    Re: Assign existing named table to list object in macro

    Glad you got it sorted...Tx for rep +
    Last edited by sintek; 08-15-2019 at 03:58 AM.

+ 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. Adjust existing macro to pick up specific named worksheet and copy to named range
    By Groovicles in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-08-2017, 12:03 PM
  2. [SOLVED] Excel 2013: How to assign Keyboard Shortcut to existing macro?
    By VAer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2017, 08:41 PM
  3. [SOLVED] How to assign a keyboard key to existing macro?
    By GIS2013 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-19-2014, 07:31 AM
  4. Assign macro to an object with arguments
    By efernandes67 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-15-2011, 07:19 PM
  5. Replies: 6
    Last Post: 12-23-2009, 02:28 PM
  6. [SOLVED] Dynamically assign ComboBox.List from named range areas
    By Paul Martin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2005, 01:05 AM
  7. [SOLVED] Assign a macro to Command Button Object
    By dallin in forum Excel General
    Replies: 2
    Last Post: 07-12-2005, 11:05 PM

Tags for this Thread

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