Jyggalag
Active Member
- Joined
- Mar 8, 2021
- Messages
- 445
- Office Version
- 365
- 2019
- Platform
- Windows
Hi all,
I currently have the following setup:
I have marked everything that I want to be exported into a PDF, which works when I manually save the file as a PDF.
However, I do also have a macro ("Save file to folder") as seen above, which saves the file (albeit as an Excel file) to my folder
My code for this macro (VBA) IS:
If I want to edit this VBA so it saves my files as a PDF, does anybody know of a nice way in which this could be done?
Would truly appreciate some assistance here! Many thanks
Kind regards,
Jyggalag
I currently have the following setup:
I have marked everything that I want to be exported into a PDF, which works when I manually save the file as a PDF.
However, I do also have a macro ("Save file to folder") as seen above, which saves the file (albeit as an Excel file) to my folder
My code for this macro (VBA) IS:
VBA Code:
Sub SaveFileWithMicro()
Dim Path As String
Dim fn As String
Path = "\\COMPANY.MSSS.COMPANY.NET\userdata\t6853425\home\Documents\TEST tracking files\Track with macro\"
fn = Range("A35")
ActiveWorkbook.SaveAs Filename:=Path & fn & ".xls", FileFormat:=xlNormal
End Sub
If I want to edit this VBA so it saves my files as a PDF, does anybody know of a nice way in which this could be done?
Would truly appreciate some assistance here! Many thanks
Kind regards,
Jyggalag