PDA

View Full Version : setting dynamically



jaango123
11-29-2010, 12:07 AM
If we set
Range("A10:B12").Select, this will highlight from row 10 to row 12 from column A to Column B

How Can i set this dynamicaaly
i=10
Range("Ai:Bi+2").Select. The above doesnt work. Any help

Bob Phillips
11-29-2010, 12:55 AM
Range("A" & i & ":B" & i + 2).Select


or



Cells(i, "A").Resize(3, 2).Select