using VBA to publish section of excel sheet as pdf. getting this error. code below. Any suggestions?
debug shows "OpenAfterPublish:=False" as being where it hangs up. Help!
thanks all
C
Code:
'saving the overview report
Dt = Date
'Setting up the Width of the merged ccolumns
Call CLWid.CLWid
Ovr_Rpt.Activate
Ovr_Rpt.Range("A1:I34").Select
Selection.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
filePath, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, From:=1, To:=1, _
OpenAfterPublish:=False
cnt = cnt + 1
Cnt1 = Cnt1 + 1
Loop
debug shows "OpenAfterPublish:=False" as being where it hangs up. Help!
thanks all
C
Last edited by a moderator: