Help please,
I currently have the following macro which works great but need it to save the .pdf name = to 3 different cell location, this is the only way I can see it will save with so I can easily identify.
What do I need to do to the below to correct this?
>>> use code - tags <<<
I currently have the following macro which works great but need it to save the .pdf name = to 3 different cell location, this is the only way I can see it will save with so I can easily identify.
What do I need to do to the below to correct this?
>>> use code - tags <<<
Code:
Sub SaveSend()
'
' SaveSend Macro
'
'
ThisWorkbook.Worksheets("Sheet1").Unprotect ("q")
Range("A1:L37").Select
ActiveWindow.SmallScroll Down:=-32
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\Users\johna\OneDrive - Coastal Computer Medics\Tool Box talk # 1 Bullying .pdf" _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True
Range("C8:D8,G8:L8").Select
Range("G8").Activate
ActiveWindow.SmallScroll Down:=16
Range( _
"C8:D8,G8:L8,B24:L29,B31:C31,D31:F31,G31:H31,I31:L31,B33:C33,D33:F33,G33:H33,I33:L33,B35:C35,D35:F35,G35:H35,I35:L35" _
).Select
Range("I35").Activate
ActiveWindow.SmallScroll Down:=4
Range( _
"C8:D8,G8:L8,B24:L29,B31:C31,D31:F31,G31:H31,I31:L31,B33:C33,D33:F33,G33:H33,I33:L33,B35:C35,D35:F35,G35:H35,I35:L35,B37:C37,D37:F37,G37:H37,I37:L37" _
).Select
Range("I37").Activate
ActiveWindow.SmallScroll Down:=-36
Selection.ClearContents
ActiveWindow.SmallScroll Down:=-44
Range("C8:D8").Select
ThisWorkbook.Worksheets("Sheet1").Protect ("q")
End Sub
Attachments
Last edited by a moderator: