The below code used to export to PDF saves fast on one computer and very slow on another similar computer. On the slow computer I use Foxit and not Adobe. Does that matter? Do I have to have Foxit as an add-on in excel? If I save the file manually using the menu and save as it seems to work fine. Any help would be appreciated.
Sub DETAIL_PDF()
Dim response As String
Dim PrintAreaString As String
response = InputBox("Enter column letter for 2nd part of range", "Enter Data")
Application.ScreenUpdating = False
With ActiveSheet
PrintAreaString = "$A$3:$" & Trim(UCase(response)) & "$" & .Range("B1").Value
If response <> "" Then
.PageSetup.PrintArea = PrintAreaString
.PageSetup.Orientation = xlLandscape
.PageSetup.Zoom = False
.PageSetup.FitToPagesWide = 1
.PageSetup.FitToPagesTall = False
.PageSetup.LeftMargin = 36
.PageSetup.TopMargin = 72
.PageSetup.RightMargin = 36
.PageSetup.BottomMargin = 36
End If
End With
ChDir ActiveWorkbook.Path & ""
fileSaveName = "FRIEDLAND QUOTE " & Range("B6").Value & " " & "JOB " & Range("B7").Value & " " & Range("A15").Value & " " & Range("B15").Value & " " & Range("AB15").Value & " " & Range("AD15").Value & Range("B9").Value & " PCS" & " " & Format(Date, "mmddyy")
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
fileSaveName _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True '(change this to "False" to prevent the file from opening after saving)
Application.ScreenUpdating = True
End Sub
Sub DETAIL_PDF()
Dim response As String
Dim PrintAreaString As String
response = InputBox("Enter column letter for 2nd part of range", "Enter Data")
Application.ScreenUpdating = False
With ActiveSheet
PrintAreaString = "$A$3:$" & Trim(UCase(response)) & "$" & .Range("B1").Value
If response <> "" Then
.PageSetup.PrintArea = PrintAreaString
.PageSetup.Orientation = xlLandscape
.PageSetup.Zoom = False
.PageSetup.FitToPagesWide = 1
.PageSetup.FitToPagesTall = False
.PageSetup.LeftMargin = 36
.PageSetup.TopMargin = 72
.PageSetup.RightMargin = 36
.PageSetup.BottomMargin = 36
End If
End With
ChDir ActiveWorkbook.Path & ""
fileSaveName = "FRIEDLAND QUOTE " & Range("B6").Value & " " & "JOB " & Range("B7").Value & " " & Range("A15").Value & " " & Range("B15").Value & " " & Range("AB15").Value & " " & Range("AD15").Value & Range("B9").Value & " PCS" & " " & Format(Date, "mmddyy")
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
fileSaveName _
, Quality:=xlQualityStandard, IncludeDocProperties:=True, IgnorePrintAreas _
:=False, OpenAfterPublish:=True '(change this to "False" to prevent the file from opening after saving)
Application.ScreenUpdating = True
End Sub