I have a workbook template that saves to a specific path and filename when the save button is activated. I'd like it to also save it as a .pdf to a different path with the same filename when the save button is activated. I hope that makes sense and I've posted this correctly... The existing code is below. Thank you in advance for any help on this.
Private Sub Save_Button_Click()
If Range("O7").Value = "run" Then
Range("O7").Value = ""
End If
Dim Path As String
Dim FileName As String
Path = "\\server1\share\QuickBooks Common\Templates"
FileName = Range("J13") & " _ " & "PO#" & Range("J12") & "_" & "BOL#" & Range("K7") & "_" & Format(Now(), "yymmdd")
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs FileName:=Path & FileName & ".xlsm", FileFormat:=52
Range("A1").Activate
Range("C9").Activate
End Sub
Private Sub Save_Button_Click()
If Range("O7").Value = "run" Then
Range("O7").Value = ""
End If
Dim Path As String
Dim FileName As String
Path = "\\server1\share\QuickBooks Common\Templates"
FileName = Range("J13") & " _ " & "PO#" & Range("J12") & "_" & "BOL#" & Range("K7") & "_" & Format(Now(), "yymmdd")
Application.DisplayAlerts = False
ActiveWorkbook.SaveAs FileName:=Path & FileName & ".xlsm", FileFormat:=52
Range("A1").Activate
Range("C9").Activate
End Sub