I am exporting an Excel Macro into a VB app but keep getting errors. I want the Macro to run in the current open xl workbook. Do I need any code before the macro? Here is some of the macro:
Sheets("Model"
.Select
Columns("IV:IV"
.Select
Selection.ClearContents
Columns("AD:AD"
.Select
Selection.Insert Shift:=xlToRight
Columns("G:G"
.Select
Selection.Copy
Columns("AD:AD"
.Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Sheets("Copy"
.Select
Application.Goto Reference:="copy"
Selection.Copy
Thanks,
Kev.
Sheets("Model"

Columns("IV:IV"

Selection.ClearContents
Columns("AD:AD"

Selection.Insert Shift:=xlToRight
Columns("G:G"

Selection.Copy
Columns("AD:AD"

Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Selection.PasteSpecial Paste:=xlFormats, Operation:=xlNone, SkipBlanks:=False, Transpose:=False
Sheets("Copy"

Application.Goto Reference:="copy"
Selection.Copy
Thanks,
Kev.