+ Reply to Thread
Results 1 to 9 of 9

How to select all of specified column?

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    How to select all of specified column?

    1. Select column with header "Units" in Row 1
    2. Select the ENTIRE column

    I am assuming it is something like:

    Please Login or Register  to view this content.
    But I don't know what goes after that
    Last edited by ks100; 01-09-2014 at 11:15 AM.

  2. #2
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How to select all of specified column?

    Nevermind, figured it out.

    Please Login or Register  to view this content.

  3. #3
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How to select all of specified column?

    "following your way":
    Please Login or Register  to view this content.
    but I'd rather do
    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How to select all of specified column?

    rows(1).find seems a lot more elegant. I have a LOT of scripts that require matching stuff in the header column. How would I use the rows(1).find? Can you show me an example?

    Is there a way using this command to deal with spreadsheets where the header row may be as far down as row 10? Some of the sheets I work with have headers that far down.

  5. #5
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: How to select all of specified column?

    Maybe:

    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How to select all of specified column?

    Quote Originally Posted by ks100 View Post
    rows(1).find seems a lot more elegant. I have a LOT of scripts that require matching stuff in the header column. How would I use the rows(1).find? Can you show me an example?

    Is there a way using this command to deal with spreadsheets where the header row may be as far down as row 10? Some of the sheets I work with have headers that far down.
    Would this work:

    Please Login or Register  to view this content.
    or this?

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How to select all of specified column?

    This seems to work for when the header might be in any row 1-10. SEEMS to work. Does it look ok? It worked on the one I tested it with.

    Please Login or Register  to view this content.

  8. #8
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: How to select all of specified column?

    You earlier said just about row1. Has it changed? And about the column (with end(xldown) you may select only part of it). keeping early description as binding I'd do:
    Please Login or Register  to view this content.
    Last edited by Kaper; 01-09-2014 at 11:45 AM.

  9. #9
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Re: How to select all of specified column?

    Quote Originally Posted by Kaper View Post
    You earlier said just about row1. Has it changed? And about the column (with end(xldown) you may select only part of it). keeping early description as binding I'd do:
    Please Login or Register  to view this content.
    I added the rngaddress.entirecolumn.select. What does your code do that mine above doesn't? Just curious since yours is longer and mine seemed to work.

+ 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. [SOLVED] VBA: Select Range of Cells in one Column, Merge, and then proceed to Next Column
    By magasi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-27-2013, 12:17 PM
  2. Replies: 4
    Last Post: 06-17-2013, 05:21 AM
  3. Select the last row in a column with data nd paste the value in the rest of the column
    By Sheldon Brooks in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 05:33 AM
  4. Replies: 10
    Last Post: 01-17-2013, 01:42 PM
  5. [SOLVED] From VBA: How to select a column by column number instead of letter?
    By (Pete Cresswell) in forum Excel General
    Replies: 2
    Last Post: 02-04-2005, 11:06 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