Skip to content

Instantly share code, notes, and snippets.

Created September 13, 2016 09:36
Show Gist options
  • Save anonymous/b6c367addeb2a3580d769ec7c602dd67 to your computer and use it in GitHub Desktop.
Save anonymous/b6c367addeb2a3580d769ec7c602dd67 to your computer and use it in GitHub Desktop.
Sub Macro1()
'
' Macro1 Macro
'
'
Columns("E:E").Select
Selection.Insert Shift:=xlToRight
Range("E1").Select
ActiveCell.FormulaR1C1 = "testing"
Range("E2").Select
ActiveCell.FormulaR1C1 = "=VLOOKUP(RC[-1],[testvlookup.xlsx]Sheet1!C1,1,0)"
Range("E2").Select
Selection.AutoFill Destination:=Range("E2:E746")
Range("E2:E746").Select
Selection.Copy
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Range("E1").Select
Application.CutCopyMode = False
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment