is there a way to dynamically change the workbook name in a Formula vba statement? I'm looping thru multiple workbooks based on the filename found in the directory and each passthru of the macro would have to reflect the workbook just opened.
first pass workbook name is "Servers with Access.xlsx" Sheet name No Dup
second pass workbook name is "Workstation with Access.xlsx" Sheet name Dups
ect.... until the whole directory is processed
Thanks
Range("J4").Formula = "=IFERROR(VLOOKUP(I4,'[Servers with Access.xlsx]No dup'!$C:$C,1,False),"" "")"
Range("J4").AutoFill Destination:=Range("J4:J" & lastrow)
first pass workbook name is "Servers with Access.xlsx" Sheet name No Dup
second pass workbook name is "Workstation with Access.xlsx" Sheet name Dups
ect.... until the whole directory is processed
Thanks
Range("J4").Formula = "=IFERROR(VLOOKUP(I4,'[Servers with Access.xlsx]No dup'!$C:$C,1,False),"" "")"
Range("J4").AutoFill Destination:=Range("J4:J" & lastrow)