kelly mort
Well-known Member
- Joined
- Apr 10, 2017
- Messages
- 2,169
- Office Version
- 2016
- Platform
- Windows
Hello I have this issue here and I need help :
I want the files saved in that pdf files folder yet it keeps saving it in the documents folder.
I am sure I am messing up with something but can't see it yet.
Point that out for me please.
Thanks in advance
Kelly
Code:
Sub pdfCreate ()
Dim FolderPath As String
FolderPath = ThisWorkbook.Path & "\PDF FILES"
ChDir ThisWorkbook.Path & "\PDF FILES"
Sheet10.ExportAsFixedFormat Type:=xlTypePDF, Filename:=Sheet10.Range("F4").Text, Quality:=xlQualityStandard, _
IncludeDocProperties:=True, IgnorePrintAreas:=False, OpenAfterPublish:=False
End Sub
I want the files saved in that pdf files folder yet it keeps saving it in the documents folder.
I am sure I am messing up with something but can't see it yet.
Point that out for me please.
Thanks in advance
Kelly