View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
The Hawk The Hawk is offline
external usenet poster
 
Posts: 23
Default Setting a Variable range in VBA

I'm trying to define a variable range based on the row before the last one
that contains data. Have tried a variety of methods, but so far none that
work. Due to methods used to load drop down controls the last row contains
<End; therefore, I need to use the row right above as the control for sorts,
etc. The Column Range is fixed so I've tried;

Range("B3:AE" & VARIABLE).Select

where the VARIABLE is the last row offset -1. The results always include
<End in the sort.

Any advice will be appreciated...