Hi all,
How could I make the below code work without hardcoding the filename
The reason is to avoid error when someone changes the filename.
By the way, Sheet1 is in another workbook.
Thanks in advance.
How could I make the below code work without hardcoding the filename
VBA Code:
Sheets("Sheet1").Range("AQ2).FormulaR1C1 = "=VLOOKUP(MID(RC[-42],25,19),'Macro File.xlsm'!Table1,2,FALSE)"
The reason is to avoid error when someone changes the filename.
By the way, Sheet1 is in another workbook.
Thanks in advance.