I'm receiving a Runtime Error '9' Subscript out of range when I try to run run the below code.
I've tried changed the
but that didn’t help.
The code below was created using the macro recorder.
This is the part that is highlighted when debugging
I've tried changed the
Code:
Range("A5").Select
The code below was created using the macro recorder.
This is the part that is highlighted when debugging
Code:
Windows( _
"Fulfillment_Weekly_Headcount" _
).Activate
Code:
Sub Macro1()
Range("E6:G6,E11:G26").Select
Range("E11").Activate
ActiveWindow.SmallScroll Down:=21
Range("E6:G6,E11:G26,E31:G38").Select
Range("E31").Activate
ActiveWindow.SmallScroll Down:=6
Range("E6:G6,E11:G26,E31:G38,E43:G43,E48:G48,E53:G53").Select
Range("E53").Activate
ActiveWindow.SmallScroll Down:=21
Selection.ClearContents
ActiveWindow.SmallScroll Down:=-66
Range("E13").Select
Sheets("CR Sum").Select
Range("A5").Select
Workbooks.Open Filename:="c:\Reports\repory1__DB_Summary.csv"
Range("A2").Select
ActiveWindow.ScrollRow = 4
ActiveWindow.ScrollRow = 5
ActiveWindow.ScrollRow = 7
ActiveWindow.ScrollRow = 8
ActiveWindow.ScrollRow = 10
ActiveWindow.ScrollRow = 12
ActiveWindow.ScrollRow = 15
ActiveWindow.ScrollRow = 17
ActiveWindow.ScrollRow = 21
ActiveWindow.ScrollRow = 25
ActiveWindow.ScrollRow = 28
ActiveWindow.ScrollRow = 32
ActiveWindow.ScrollRow = 35
ActiveWindow.ScrollRow = 38
ActiveWindow.ScrollRow = 40
ActiveWindow.ScrollRow = 43
ActiveWindow.ScrollRow = 45
ActiveWindow.ScrollRow = 47
ActiveWindow.ScrollRow = 48
ActiveWindow.ScrollRow = 49
ActiveWindow.ScrollRow = 51
ActiveWindow.ScrollRow = 52
ActiveWindow.ScrollRow = 53
Range("A2:K1044").Select
Selection.Copy
Windows( _
"Fulfillment_Weekly_Headcount" _
).Activate
ActiveSheet.Paste
End Sub