+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Selecting a column

    I need to select the whole column ABOVE the active cell. Ctrl-Shift-UpArrow is no good because it stops at the first blank cell. And selecting the whole column is no good either because when I subsequently paste into the column, it pastes in all the empty cells of the column, meaning my worksheets expands from a few hundred rows to 1 million!

    Shift-Home does what I want on rows. Is there an equivalent for columns?

    TIA

  2. #2
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: Selecting a column

    Do you mean perhaps: SHIFT + PAGE UP ?

  3. #3
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,039

    Re: Selecting a column

    select the whole column and then do Shift Ctrl UpArrow
    Last edited by teylyn; 01-28-2010 at 04:57 AM.
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  4. #4
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,039

    Re: Selecting a column

    DO, that will only select one page worth of data, if you're several pages down from row 1, you'll need to hit it repeatedly.
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  5. #5
    Registered User
    Join Date
    01-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Selecting a column

    Thanks for your replies; unfortunately, I'm still in the same boat.

    Shift-PgUp only selects a page-worth, and because the page has around 90K lines, I needto write a macro to automate things.

  6. #6
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,039

    Re: Selecting a column

    did you read my first reply? Did you try it?
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  7. #7
    Forum Moderator teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    2003 & 2010
    Posts
    10,039

    Re: Selecting a column

    Maybe a bit more detail:

    with Row 1 visible on the screen, click the column header to select the whole column
    Then hit Ctrl-Shift-UpArrow. This will select from row 1 down to the last occupied cell in the column.

    If Row 1 is not visible when you click the column header, the Ctrl-Shift-UpArrow will not change the selection and it will remain at the whole column.

    Dunno why, just found that it does it that way.
    teylyn
    Microsoft MVP - Excel
    At Excelforum, you can say "Thank you!" by clicking the icon below the post.

    Avoid pie charts with more than two data points. Why? See here (pdf, 559 kb). The only acceptable pie chart is here.

  8. #8
    Registered User
    Join Date
    01-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Selecting a column

    Thanks teylyn; yes, tried that, but no go - am I doing something wrong? After selecting the whole column, I then clicked on the bottom cell, then did the Ctrl-Shift-Up; but once again, it stops at the first blank cell.

  9. #9
    Registered User
    Join Date
    01-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Selecting a column

    Wow, that did the job very beautifully!

    Thanks, Teylen!

  10. #10
    Registered User
    Join Date
    01-28-2010
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Selecting a column

    Unfortunately, a hitch .... the "select column, then do a Ctrl-Shift-Up" method works beautifully when manipulating the spreadsheet manually.

    However, when converting those movements into a macro via "record macro", it doesn't work; the whole column continues to be selected.

    The code created by "record macro" is -

    Columns("E:E").Select
    Range(Selection, Selection.End(xlUp)).Select

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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.2.0