Guest User

Untitled

a guest
Jan 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. Sub CCC()
  2. Dim Lastrow As Long 'Used for the formulas
  3. Lastrow = Range("D" & Rows.Count).End(xlUp).Row
  4.  
  5. Range("B2").formula = "=IFERROR(VLOOKUP(F2,'C:UsersaNTHONY[cLASS.xlsx]cLASS'!$B$2:$F$1048576,2,FALSE)"
  6.  
  7. Range("B2").AutoFill Destination:=Range("B2:B" & Lastrow)
  8.  
  9. End Sub
  10.  
  11. Range("B2").formula = "=IFERROR(VLOOKUP(F2,'C:UsersaNTHONY[cLASS.xlsx]cLASS'!$B$2:$F$1048576,2,FALSE)"
  12.  
  13. Range("B2").formula = "=IFERROR(VLOOKUK(F2,'C:UsersaNTHONY[cLASS.xlsx]cLASS'!$B$2:$F$1048576,2,FALSE)"
Add Comment
Please, Sign In to add comment