G
Guest
What could POSSIBLY be causing the error 1004 on this code:
Dim LookLU2 as Range
Dim Stats as Variant
Set LookLU2 = Workbooks("PRProc.xls").Names("StatsAcc").RefersToRange
Stats = Application.WorksheetFunction.VLookup("112001", LookLU2, 2, False)
The file is open, the lookup works when I do it manually. I don't get it.
Any ideas?
Dim LookLU2 as Range
Dim Stats as Variant
Set LookLU2 = Workbooks("PRProc.xls").Names("StatsAcc").RefersToRange
Stats = Application.WorksheetFunction.VLookup("112001", LookLU2, 2, False)
The file is open, the lookup works when I do it manually. I don't get it.
Any ideas?