Hi all,
I'm running into a problem when running the following piece of code:
I'm linking the variable, "FilePath" to a cell on a sheet using:PHP Code:
ActiveWorkbook.Worksheets(SheetName).ExportAsFixedFormat _
Type:=xlTypePDF, _
Filename:=FilePath & Filename, _
Quality:=xlQualityStandard, _
IncludeDocProperties:=True, _
IgnorePrintAreas:=False, _
OpenAfterPublish:=False
The value it returns is: C:\Users\Harry.Greenwood\Documents\Excel PDFs\PHP Code:
FilePath = ActiveWorkbook.Worksheets(CommandSheet).Cells(2, 8)
The code executes, but doesn't create a PDF.
When I manually paste the file path in, it works fine however.
Any ideas?
Bookmarks