Results 1 to 3 of 3

VBA Select mutiple rows (ending range variable)

Threaded View

clemsoncooz VBA Select mutiple rows... 12-30-2011, 03:50 PM
JieJenn Re: VBA Select mutiple rows... 12-30-2011, 03:59 PM
clemsoncooz Re: VBA Select mutiple rows... 12-30-2011, 04:16 PM
  1. #1
    Forum Contributor
    Join Date
    12-20-2011
    Location
    United States, Ohio
    MS-Off Ver
    Excel 2010
    Posts
    295

    VBA Select mutiple rows (ending range variable)

    OK - I cant figure this out. Trying to teach myself the VBA code language and it just isn't working....and a google search isn't helping either.


    Two Questions that both refer to when the end range value varies.
    (1) - How do I select rows in VBA when I know the starting row number. - e.g: Row 23 (but my only referrence on where to end the range is how many rows have data in them when looking at Column D?)
    (2) - How do I select rows in VBA based off the current active cell using Offset - (meaning my starting range value is the current active cell. (but my only referrence on where to end the range is how many rows have data in them when looking at Column D?)

    Does this make sense?

    I know this is wrong, but this is what I have:
    Rows(23 & : & D" & Rows("23").End(xlDown).Row).Select

    I have upload a reference file, if needed. Sample 12-30.xlsm

    Thanks in advance.
    Last edited by clemsoncooz; 12-30-2011 at 04:16 PM.

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.6.0 RC 1