Hi,
In my worksheet - I have an option for the activesheet to be converted in PDF and send email. However, everytime I click on email button I get the following error message :
Run-time error '02147028494(80070002);'
Cannot find this file. Verify the path and file name are correct.
That's only happen in Office 2013 version but when I use the same file in Office 365 - it works fine. The problem is I don't have Office 365 so is there anything we can do for this run in Office 365 as well as any other version.
Here is the code for PDF Conversion :
Please can someone guide me on this.
Many thanks,
In my worksheet - I have an option for the activesheet to be converted in PDF and send email. However, everytime I click on email button I get the following error message :
Run-time error '02147028494(80070002);'
Cannot find this file. Verify the path and file name are correct.
That's only happen in Office 2013 version but when I use the same file in Office 365 - it works fine. The problem is I don't have Office 365 so is there anything we can do for this run in Office 365 as well as any other version.
Here is the code for PDF Conversion :
VBA Code:
PdfFile = Sheets("Test").Range("S10").Value & "_" & Sheets("Test").Range("B3").Value
i = InStrRev(PdfFile, ".")
If i > 1 Then PdfFile = Left(PdfFile, i - 1)
PdfFile = PdfFile & "_" & ".pdf"
Please can someone guide me on this.
Many thanks,