Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is the code for "Ctrl-Select" rows?

Status
Not open for further replies.

castout

Programmer
Joined
Jan 22, 2002
Messages
23
Location
US
I need to loop through rows and select the row based on the value in a column. Basically, I want to "ctrl-select" each row that meets my criteria. I tried recording the macro, but it just looked like this:

Range("5:5,12:12,15:15").Select

Anyone know how to do this?

Thanks!
 
Why not applying a filter and playing with xlCellTypeVisible ?

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top