krishna_gopal_2
New Member
- Joined
- Jun 7, 2018
- Messages
- 3
Hi All,
It seems an old question. I found so many posts regarding the same. But couldn't solve the error. I am trying to save my Active Sheet into a PDF using the following code. Initially, it worked fine. But recently it shows Run-time error 5. "Invalid Procedure Call & Argument". Please help me solve this.
Thanks in Advance
It seems an old question. I found so many posts regarding the same. But couldn't solve the error. I am trying to save my Active Sheet into a PDF using the following code. Initially, it worked fine. But recently it shows Run-time error 5. "Invalid Procedure Call & Argument". Please help me solve this.
Sub ExportToPDF1()ActiveSheet.ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=Range("C3").Value, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=False, _
IgnorePrintAreas:=False, _
From:=1, _
To:=2, _
OpenAfterPublish:=True
End Sub
Thanks in Advance