Code below is used to generate a PDF file from a workbook. Would like to be able to alter the code so the save file path can be in cell A12 on Sheet("Setup"). This is current hard coded into the code as Filename:="C:\Temp_Test\" ....
Ideas appreciated
Sub Export_PDF_File()
'
' Export_PDF_File Macro
'
Dim dtDelay As Date
Call Calc_Auto
dtDelay = Now
Dim D
D = Format(Range("laDate").Value, "mmm-dd-yyyy")
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:="C:\Temp_Test\" & Sheets("SetUp").Range("A14").Value & D & ".pdf" _
, Quality:=xlQualityMinimum, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, From:=1, To:=28, OpenAfterPublish:=False
If Now < (dtDelay + TimeSerial(0, 0, 5)) Then
Application.Wait dtDelay + TimeSerial(0, 0, 5)
End If
End Sub
Ideas appreciated
Sub Export_PDF_File()
'
' Export_PDF_File Macro
'
Dim dtDelay As Date
Call Calc_Auto
dtDelay = Now
Dim D
D = Format(Range("laDate").Value, "mmm-dd-yyyy")
ActiveWorkbook.ExportAsFixedFormat Type:=xlTypePDF, Filename:="C:\Temp_Test\" & Sheets("SetUp").Range("A14").Value & D & ".pdf" _
, Quality:=xlQualityMinimum, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, From:=1, To:=28, OpenAfterPublish:=False
If Now < (dtDelay + TimeSerial(0, 0, 5)) Then
Application.Wait dtDelay + TimeSerial(0, 0, 5)
End If
End Sub