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

Using .find to find a value in a hidden column

Status
Not open for further replies.

Cage

MIS
Aug 25, 2002
50
CA
Can any tell me how to find a value in a hidden column using the .find function. At the moment, i have to unhide the column, run the macro, then hid the column again.

tia

cage
 
Something like this should work - the WITH means that the column is IMPLICITLY used rather than actually being selected:
fWhat = "DatatoFind"
With ActiveSheet.Columns("D")'where D is hidden
Set fCell = .Find(fWhat,lookin:=xlvalues,lookat:=xlwhole)
MsgBox fCell.Address
End With

HTH Rgds
~Geoff~
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top