Hi Everyone 
I have two macro and I cant figure out how to get them to work with each other.
The first Macro I have will print to pdf and use a specific file name and path location as indicated in cell N5
The second macro will automatically print from a data list the entire list.
How do I get these two macro together so that I can print my entire data list to PDF using a specific file name which is indicated in a cell as well as saving it to a specific folder?
Macro 1
Macro 2
I have two macro and I cant figure out how to get them to work with each other.
The first Macro I have will print to pdf and use a specific file name and path location as indicated in cell N5
The second macro will automatically print from a data list the entire list.
How do I get these two macro together so that I can print my entire data list to PDF using a specific file name which is indicated in a cell as well as saving it to a specific folder?
Macro 1
Code:
Sub Macro5()
s = Range("N5").Value
'
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
s, Quality:=xlQualityStandard, IncludeDocProperties _
:=True, IgnorePrintAreas:=False, OpenAfterPublish:=True
End Sub
Macro 2
Code:
Sub PrintValidationChoices()
Dim r As Long, i As Long
r = Range("P1 : P22").Cells.Count
For i = 1 To r
Range("A1") = Range("P1 : P22").Cells(i)
ActiveSheet.PrintOut Copies:=1
Next i
End Sub
Last edited by a moderator: