+ Reply to Thread
Results 1 to 5 of 5

Range Selection Help

  1. #1
    Registered User
    Join Date
    07-31-2012
    Location
    Midwest
    MS-Off Ver
    Excel 2007
    Posts
    31

    Question Range Selection Help

    Hi,

    I'd like to select visible cells in the active column, the column will change throughout the code running process, so the column is not always pre-identified and I'd only use the active column based on selecting that column through code.

    The last visible row is however identified. So I'd like to start at row number 1 and select down to the last visible row (already identified). I want to include blanks. Simply just select from row 1 to last visible row in whatever column is currently active.

    I'm looking to copy the range to another workbook. I can't just use visible cells in the entire column as then all blanks after the filtered range are included and paste as well into the second workbook adding many rows of blank data which are not needed.

    It seems like it would be so easy, but my searches over the past 2 days have come up with no relevant solution.

    As always, thanks to anyone in advance who can be of assistance.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Range Selection Help

    Sorry I'm confused, first you seem to say you want to include blanks, then you say you don't.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    07-31-2012
    Location
    Midwest
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Range Selection Help

    I want to include blanks that are before the end of the filtered range. After the filtered range, I don't want to copy/paste those blanks any longer.

    I believe I have found a solution, which of course I find 5 minutes after posting this... ugh... that's how it goes.

    Please Login or Register  to view this content.
    Please advise if you don't think that's the best solution to what I'm looking for..

    Thank you Norie...
    Last edited by yoshi_5; 12-09-2014 at 02:15 PM.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Range Selection Help

    That looks fine, though you might want to try something like this to make sure you copy from the first row.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    07-31-2012
    Location
    Midwest
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Range Selection Help

    Edit: Answered my own question again.

    Thanks for putting up with a newbie.
    Last edited by yoshi_5; 12-09-2014 at 02:34 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. [SOLVED] I need help range selection and cells selection
    By venkatpvc in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2013, 07:36 PM
  2. [SOLVED] Range(Selection, Selection.End(xlDown)).Select goes to 65536 instead of last filled row
    By looney in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-12-2013, 10:51 AM
  3. Replies: 2
    Last Post: 04-20-2012, 12:23 PM
  4. Hide rows in range 2 based on filter selection in range 1
    By gtol in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 02-28-2012, 02:09 PM
  5. Range selection based on adjacent cell range
    By iguss in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-20-2008, 07:57 AM

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