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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ask code if ActiveCell.Row is within a range

Status
Not open for further replies.

williekay

Technical User
Jun 30, 2003
121
0
0
US
How do you ask the following in VBA

Is ActiveCell.Row between 5 and 10?

Willie
 




hi,

Avoid Active anything as a reference in general.
Code:
if not intersect(activecell, rows("5:10")) is nothing then
  'houston, we have a hit
end if


Skip,
[sub]
[glasses] When a diminutive clarvoyant had disappeared from detention, headlines read...
Small Medium at Large[tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top