I have the code below which works fine, however I would rather change the sheet references in the code to the actual sheet numbers
ie sheet20.select instead of Sheets("132627 Liverpool Lime Street").Select
when I try this it crashes
thanks
ie sheet20.select instead of Sheets("132627 Liverpool Lime Street").Select
when I try this it crashes
thanks
Code:
Sub LNW_N_SLIDES()
'
' Macro3 Macro
'
'
Range("V15").Select
Sheets("LNW N").Select
ActiveSheet.DrawingObjects.Select
Selection.Delete
Range("A1").Select
Workbooks.Open Filename:= _
"\\BBPFC01\CitrixData\P3e\IP Signalling\Dashboard Commentary\DASHBOARDS\Project Dashboards LNW N.xlsm" _
, UpdateLinks:=3
ActiveWindow.SmallScroll Down:=-30
Range("A1:Z201").Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Windows("slides.xlsm").Activate
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=48
Range("A60").Select
Windows("Project Dashboards LNW N.xlsm").Activate
Sheets("132627 Liverpool Lime Street").Select
Range("A1:Z201").Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Windows("slides.xlsm").Activate
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=57
Range("A119").Select
Windows("Project Dashboards LNW N.xlsm").Activate
Sheets("132357 Weaver to Wavertree").Select
ActiveWindow.SmallScroll Down:=0
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Windows("slides.xlsm").Activate
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=51
Range("A178").Select
Windows("Project Dashboards LNW N.xlsm").Activate
Sheets("TBC004").Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Windows("slides.xlsm").Activate
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=66
Range("A237").Select
Windows("Project Dashboards LNW N.xlsm").Activate
Sheets("TBC005").Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Windows("slides.xlsm").Activate
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=48
Range("A296").Select
Windows("Project Dashboards LNW N.xlsm").Activate
Sheets("TBC006").Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Windows("slides.xlsm").Activate
ActiveSheet.Paste
ActiveWindow.SmallScroll Down:=72
Range("A355").Select
Windows("Project Dashboards LNW N.xlsm").Activate
Sheets("TBC007").Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlBitmap
Windows("slides.xlsm").Activate
ActiveSheet.Paste
Range("U1").Select
Windows("Project Dashboards LNW N.xlsm").Activate
ActiveWindow.Close False
End Sub
Last edited by a moderator: