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 03:16 PM.
Rows("23:" & Cells(Rows.Count, 4).End(xlUp).Row).Select Your answer to your 2nd question Rows(ActiveCell.Row & ":" & Cells(Rows.Count, 5).End(xlUp).Row).Select
To thank someone who has helped you, click on the star icon below their name.
I hate reading
Portfolio
I need a job.I am young and incompetent
THANK YOU! Certainly solves the first question, perfectly.
But doesn't solve my second question - but I don't really NEED to know that right now. My issues pertaining to my work is answered (thanks to you). The second question was for my own knowledge. Marking the thread as SOLVED.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks