Skip to content

Commit

Permalink
Create vlookup
Browse files Browse the repository at this point in the history
  • Loading branch information
zjxte authored Nov 14, 2021
0 parents commit 2109f1b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vlookup
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'Vlookup from a closed worksheet

dim myFile as string
myFile = CStr(Environ("USERPROFILE")) & "\Documents\[ProductNotes-Search.xlsx]ProductNotes-Search"
ws.Range("G" & i).FormulaR1C1 = ("=IFERROR(VLOOKUP(RC[-5],'" & myFile & "'!R2C2:R65536C4,2,0),""/"")")

0 comments on commit 2109f1b

Please sign in to comment.