+ Reply to Thread
Results 1 to 3 of 3

Select Column based on name of column

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    Washington
    MS-Off Ver
    Excel 2003
    Posts
    28

    Select Column based on name of column

    I have a simple problem. I've searched for solutions but can't find something that works.

    The column name is "Time", for example. This works in the current macro and it does select the entire column.

    Please Login or Register  to view this content.
    But I don't know that my column of interest will always be in column 'E'. I'd like a simple solution to select the column based on the name of the column. There is a table (Table1) that is also on the sheet so I'm referencing that in my test example, but it's not really necessary, if I can just select the entire "Time" Column. I tried various versions of this, but nothing works.


    Please Login or Register  to view this content.
    Is there a simple modification that can select the "Time" column?
    Last edited by MikeSD; 05-19-2021 at 04:46 PM.

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

    Re: Select Column based on name of column

    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
    08-10-2012
    Location
    Washington
    MS-Off Ver
    Excel 2003
    Posts
    28

    Re: Select Column based on name of column

    Disregard, found "my" problem. When I inserted a row, I didn't have a column name.
    Last edited by MikeSD; 05-19-2021 at 04:37 PM.

+ 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. Select text from one column based on condition in other column
    By vj2019 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-20-2019, 02:30 PM
  2. [SOLVED] Select data from one column or another based on text in another column
    By arthurphil in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-15-2018, 10:23 AM
  3. [SOLVED] select entire column based on activecell - multiply cells based if found empty cell
    By k1dr0ck in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-08-2016, 01:52 AM
  4. Select a row based off a key in column 1
    By jpsnickers in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-09-2015, 06:14 PM
  5. [SOLVED] Select column based on column header name
    By D_N_L in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-31-2014, 08:09 AM
  6. [SOLVED] select a value in row based on column value
    By madhatter40 in forum Excel General
    Replies: 1
    Last Post: 06-15-2013, 12:28 PM
  7. [SOLVED] select column based on value in row
    By drfarmkid in forum Excel General
    Replies: 1
    Last Post: 06-01-2012, 06:15 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