VB - Relative Refs

D

Darin Kramer

Howdie,

Im looking for some VB that will, in the column that the cursor is
currently in, select cells 3:180.

So if active cell is in column B when macro is run it will select
b3:b180 and if active cell is in column X when macro is run, it will
select select x3:x180....

Thanks!!!

D

*** Sent via Developersdex http://www.developersdex.com ***
 
V

Vergel Adriano

Darin,

Here's one way


Sub test()
With ActiveCell
Range(Cells(3, .Column), Cells(180, .Column)).Select
End With
End Sub
 

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

Top