Hi,
i get the error "Object variable or with block variable not set" with the below code.
when i change LookAt:=xlWhole as LookAt:=xlPart i dont get the error.
i get the error "Object variable or with block variable not set" with the below code.
Code:
sub findcolumn()
Dim FindWeek as string
FindWeek = "Wk1"
Range("A2:BL2").Select
Selection.find(What:=FindWeek, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=xlWhole, SearchOrder:=xlByRows, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
nCurrentWeekCol = ActiveCell.Column
Endsub