Thread: EOF Range
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
John Wilson John Wilson is offline
external usenet poster
 
Posts: 550
Default EOF Range

dayton,

you could try the following:
Selection.AutoFill Destination:=Range(Range("I2"),Range("I65536").End (xlUp))

John

dayton wrote:

I use the following in my macro:
Selection.AutoFill Destination:=Range("I2:I111")

The problem I have is that the ending range (I111) worked great the first
time, but now my files are different sizes. Is there a EOF range I can use.
I need the range to always select the "end of file".

T.I.A.