Does xlWhole look at more that a cell's value when used in a Find statement?
When I use the atached statement in the immediate window it returns 54 (see cut and paste)
? ThisWorkbook.Sheets("Database").rows(1).Find(what:=ThisWorkbook.Sheets("Database").cells(1,54), lookat:=xlpart).column
54
when I change xlpart to xlwhole I get an error:
Run-time error '91':
Object variable or With block not set
How can xlwhole give an error when it's looking for the cell?
The Cell contents are:
Annual MM BTU Benefit
I'm stumped! Any help appreciated.
When I use the atached statement in the immediate window it returns 54 (see cut and paste)
? ThisWorkbook.Sheets("Database").rows(1).Find(what:=ThisWorkbook.Sheets("Database").cells(1,54), lookat:=xlpart).column
54
when I change xlpart to xlwhole I get an error:
Run-time error '91':
Object variable or With block not set
How can xlwhole give an error when it's looking for the cell?
The Cell contents are:
Annual MM BTU Benefit
I'm stumped! Any help appreciated.