Thread: Varing range
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
merjet merjet is offline
external usenet poster
 
Posts: 812
Default Varing range

iEnd = Range("J23").End(xlDown).Row
iEnd = Range("J65536").End(xlUp).Row

One or both of these should work. (You may need to change the number
depending on what cells in your sheet are used.) Then use iEnd in
code, e.g. like this:
Range("J23:J" & iEnd)

Hth,
Merjet