Godders199
Active Member
- Joined
- Mar 2, 2017
- Messages
- 313
- Office Version
- 2013
Hello, I have written the following code, to copy relevant information into a different workbook, and then run a marco in that book. but it cannot find the Marco,
"Macro3" Have I missedsomething?
The data has pasted across,jut need t Marco to run.
Thak
Sheets("summary").Select
If ActiveSheet.AutoFilterMode Then ActiveSheet.AutoFilter.ShowAllData
Cells.Select
Columns("b:cq").Select
Selection.EntireColumn.Hidden = True
Columns("cs").Select
Selection.EntireColumn.Hidden = True
ActiveSheet.Range("A:ct").AutoFilter Field:=1, Criteria1:="<>"
Range("a1:ct1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
ChDir _
"SQ Operations\SQ_Allocation\Classification Risk Score"
Workbooks.Open Filename:= _
"SQ Operations\SQ_Allocation\Classification Risk Score\Classification and Risk Score Import Template.xls"
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Rows("2:2").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
Range("A2").Select
Call Macro3
Columns("b:cq").Select
Selection.EntireColumn.Hidden = False
Columns("cs").Select
Selection.EntireColumn.Hidden = False
If ActiveSheet.AutoFilterMode Then ActiveSheet.AutoFilter.ShowAllData
Cells.Select
Sheets("macro").Select
Application.ScreenUpdating = True
Application.CutCopyMode = True
"Macro3" Have I missedsomething?
The data has pasted across,jut need t Marco to run.
Thak
Sheets("summary").Select
If ActiveSheet.AutoFilterMode Then ActiveSheet.AutoFilter.ShowAllData
Cells.Select
Columns("b:cq").Select
Selection.EntireColumn.Hidden = True
Columns("cs").Select
Selection.EntireColumn.Hidden = True
ActiveSheet.Range("A:ct").AutoFilter Field:=1, Criteria1:="<>"
Range("a1:ct1").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.SpecialCells(xlCellTypeVisible).Select
Selection.Copy
ChDir _
"SQ Operations\SQ_Allocation\Classification Risk Score"
Workbooks.Open Filename:= _
"SQ Operations\SQ_Allocation\Classification Risk Score\Classification and Risk Score Import Template.xls"
Range("A2").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
Rows("2:2").Select
Application.CutCopyMode = False
Selection.Delete Shift:=xlUp
Range("A2").Select
Call Macro3
Columns("b:cq").Select
Selection.EntireColumn.Hidden = False
Columns("cs").Select
Selection.EntireColumn.Hidden = False
If ActiveSheet.AutoFilterMode Then ActiveSheet.AutoFilter.ShowAllData
Cells.Select
Sheets("macro").Select
Application.ScreenUpdating = True
Application.CutCopyMode = True