select range

  • Thread starter Thread starter geebee
  • Start date Start date
G

geebee

hi,

i have the following:
Range("A5000").End(xlUp).Offset(0, 0).Select

the only problem is this is being run when the sheet is in Autofilter mode.
I want the range to be selected, except for the header row. How can i modify
this?

thanks in advance,
geebee
 
I take it that your header row is in row 1 (A1):

Range(Range("A2"), Range("A500").End(xlUp)).Select

Also, you don't need Offset(0, 0). This does nothing unless one of the
values in the parenthesis is less than or greater than 0.

Alan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top