Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,564
- Office Version
- 365
- 2016
- Platform
- Windows
EDIT: I solved the initial problem ... but see the new issue unrelated to the title (which I can't change)
I am trying to get a vlookup value from a closed workbook by applying the formula to a cell in a worksheet to refer to.
The result is #NAME.
The path exists ("D:\WSOP 2020"), the file name is correct ("permit_data.xlsx"), the worksheet name is correct (Permit_Data), column A holds permit numbers (pnum) and column E has the returning value.
In my testing, the permit number does exist in column A.
I am trying to get a vlookup value from a closed workbook by applying the formula to a cell in a worksheet to refer to.
Code:
With ws_thold
.Cells(1, 26) = "=VLOOKUP(pnum,('D:\WSOP 2020\[permit_data.xlsx]Permit_Data'!$A3:$E2000),5,FALSE)"
End With
The result is #NAME.
The path exists ("D:\WSOP 2020"), the file name is correct ("permit_data.xlsx"), the worksheet name is correct (Permit_Data), column A holds permit numbers (pnum) and column E has the returning value.
In my testing, the permit number does exist in column A.
Last edited: