View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Justin Philips Justin Philips is offline
external usenet poster
 
Posts: 32
Default select a variable range

Something like this but change your do while to what you need.

Dim x, y As Single

x = 1
y = 1

Do While Range("B" & x).Value < ""
Range("A" & x & ":AR" & y).Select
x = x + 1
y = y + 1
Loop