Find(SPELER, LookIn:=xlValues) problem with hidden colloms!!!
also you can temporarily unhide the column,
Application.ScreenUpdating = False
With Sheets("Spelers")
..Range("J:J").EntireColumn.Hidden = False
Set c2 = .Range("J2:J65000").Find(SPELER, LookIn:=xlValues)
..Range("J:J").EntireColumn.Hidden = True
End With
Application.ScreenUpdating = False
--
isabelle
Le 2011-09-25 09:15, isabelle a écrit :
you can use the MATCH function, if it's whole value of a cell that is searched
With Sheets("Spelers")
nLine = .Range("J" & Application.Match(SPELER, .Range("J1:J65000"), 0))
.Cells(nLine, 1) = ""
End With
|