Hi,
im having some issues exporting a worksheet to a PDF.
Where i want to use the following ranges in the filepath / filename of my new PDF
Dim Filename1 As String
Dim Filename2 As String
Dim Month As String
Dim Year As String
Filename1 = Range("A20")
Filename2 = Range("A7")
Month = Range("B20")
Year = Range("C20")
Dim Path As String
Path = "C:\Users\Myself\Desktop\Test01\Year\Month"
Currently i'm getting a runtime error in my save function, using:
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
filename:="C:Path & Filename1 & Filename2 &.pdf"
I've tried lots of different ways to do this but nothing seems to be working.
any help welcome.
im having some issues exporting a worksheet to a PDF.
Where i want to use the following ranges in the filepath / filename of my new PDF
Dim Filename1 As String
Dim Filename2 As String
Dim Month As String
Dim Year As String
Filename1 = Range("A20")
Filename2 = Range("A7")
Month = Range("B20")
Year = Range("C20")
Dim Path As String
Path = "C:\Users\Myself\Desktop\Test01\Year\Month"
Currently i'm getting a runtime error in my save function, using:
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, _
filename:="C:Path & Filename1 & Filename2 &.pdf"
I've tried lots of different ways to do this but nothing seems to be working.
any help welcome.