VBA_Newbie1981
New Member
- Joined
- Sep 1, 2017
- Messages
- 4
Hi,
I am new to Macros. Have written this simple macro but it keeps falling out at the line in RED? any suggestions?
I am new to Macros. Have written this simple macro but it keeps falling out at the line in RED? any suggestions?
Rich (BB code):
Sub GlassMacro1()
'
' GlassMacro1 Macro
' Add Sheets & put them in order
'
'
Sheets("Sheet1").Name = "Raw Data DB Viewer"
Sheets("Sheet2").Name = "Working Data DB Viewer"
Sheets("Sheet3").Name = "Peoplesoft Download"
Sheets("Sheet4").Select
Sheets("Sheet4").Name = "Reconciliation"
Range("C38").Select
Sheets("Raw Data DB Viewer").Select
Cells.Select
Selection.Copy
Sheets("Working Data DB Viewer").Select
ActiveSheet.Paste
Sheets("Raw Data DB Viewer").Select
Range("A1").Select
Application.CutCopyMode = False
ActiveCell.FormulaR1C1 = "COMP ID"
Range("A1").Select
Sheets("Raw Data DB Viewer").Select
Sheets("Raw Data DB Viewer").Move After:=Sheets(4)
Sheets("Reconciliation").Select
Sheets("Reconciliation").Move Before:=Sheets(1)
Sheets("Working Data DB Viewer").Select
Range("A1").Select
End Sub
Last edited by a moderator: