1. Welcome to Chandoo.org Forums. Short message for you

    Hi Guest,

    Thanks for joining Chandoo.org forums. We are here to make you awesome in Excel. Before you post your first question, please read this short introduction guide. When posting or responding to questions please remember our values at Chandoo.org are: Humility, Passion, Fun, Awesomeness, Simplicity, Sharing Remember that we have people here for whom English is not there first language and we need to allow for this in our dealings.

    Yours,
    Chandoo
  2. Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  3. When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Select Table Column dinamically

Discussion in 'VBA Macros' started by rolo, Mar 14, 2019.

  1. rolo

    rolo Member

    Messages:
    42
    Hello,

    When table name & table column are known, I use this code to select the table column:
    Code (vb):
    Range("Countries[Code]")

    But what if I have to get my table name & my table column from cells, like:
    Code (vb):
    TBName=range("A1")
    TBColumn=range("A2")

    How can I select my table column using those variables?


    Thanks for your help!
  2. rolo

    rolo Member

    Messages:
    42
    Problem solved...

    But I canĀ“t delete this post!
  3. Chihiro

    Chihiro Excel Ninja

    Messages:
    5,299
    Since this is public forum and purpose is to help others. My suggestion is to post your solution to the problem, instead of deleting the post.

    That way, someone searching for solution to the same problem may find it helpful.

Share This Page