Need Help on Dynamic Range Selection
Try this
Sub RangeSelect()
Dim myRange As Range
Dim aWS As Worksheet
Set aWS = ActiveSheet
Set myRange = aWS.Range("A2")
Set myRange = myRange.Resize(2, 7)
Do While myRange.Row < aWS.Rows.Count - 4
Set myRange = myRange.Offset(3, 0)
Debug.Print myRange.Address
Loop
End Sub
BTW, you don't need to say it's URGENT here. If people can answer, they
will. This happened to be the first unanswered question I saw this morning.
HTH,
Barb Reinhardt
"anshu" wrote:
Hi All,
I need an urgent help with one of the macros I am working on
Say I am at the cell A2. I need to select the range A2:G3. When I try
to record macro for this, it reads
Range("A2").Select
Range("A2:G2").Select
The Problem is that I dont need the Alphabetic reference as I need to
repeat the step for every 3rd row (A5, A8, A11 etc )..I was trying to
use the RC reference but its not working.
Please help
Thanks in advance
|