Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,538
- Office Version
- 365
- 2016
- Platform
- Windows
I am having difficulty finding the column number based on the following VBA formula ...
I'm getting an "Object variable or With block variable not set" error.
ws_data is recognized as the proper worksheet, dlnrow = 32. So, looking for the column number in row 32 of worksheet ws_data having the value of variable entl.
Code:
nlncol = ws_data.Range("A" & dlnrow & ":HO" & dlnrow).Find(What:=entl, LookIn:=xlValues, LookAt:=xlWhole, SearchOrder:=xlByColumns, SearchDirection:=xlNext, MatchCase:=False).Column
I'm getting an "Object variable or With block variable not set" error.
ws_data is recognized as the proper worksheet, dlnrow = 32. So, looking for the column number in row 32 of worksheet ws_data having the value of variable entl.