vba, identifying a range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I write a macro to find a named range, say A15. Then I go up one row and
select several columns. My macro would read Range("A14:D14").Select

When I add more columns and sort, then do the same command (finding the
named range), the named range would be anywhere (no longer A15) so when I go
up one cell and select several columns the cells WOULD not be
Range("A14:D14").select

How do I identify the Range(s) in my macro?

Thanks.
 
Range("A15").Offset(-1, 0).Resize(, 4).Select

Regards

Trevor
 

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