Hi,
How is everyone today?
Hope someone could offer some quick help.
I am trying to use VBA to find and select a cell within a certain column. The criteria is based on what the user selects from a list box.
Here is the code I have so far.
I get an error:
Object variable or with block variable not set.
Columns("D
").Select
Selection.Find(What:=UserForm1.lbWeek.Value, LookIn:=xlFormulas, LookAt:=xlWhole, _
SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=True).Activate
Thanks in advance.
How is everyone today?
Hope someone could offer some quick help.
I am trying to use VBA to find and select a cell within a certain column. The criteria is based on what the user selects from a list box.
Here is the code I have so far.
I get an error:
Object variable or with block variable not set.
Columns("D
Selection.Find(What:=UserForm1.lbWeek.Value, LookIn:=xlFormulas, LookAt:=xlWhole, _
SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=True).Activate
Thanks in advance.