Stephen Byrom
asked on
Excel range to PDF
Hi
I'm trying to export a range from an excel spreadsheet to My Documents in PDF format.
The range contains a number of charts. I have tried a few variations of the following code to no avail;
Range("SummaryChart").Expo rtAsFixedF ormat 0, "C:\Documents" & Range("F1").Value & ".pdf", 0
(Range F1 contains the name I would like the file to be named as)
Any advice is appreciated.
Thanks
I'm trying to export a range from an excel spreadsheet to My Documents in PDF format.
The range contains a number of charts. I have tried a few variations of the following code to no avail;
Range("SummaryChart").Expo
(Range F1 contains the name I would like the file to be named as)
Any advice is appreciated.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
I managed to work around the error. I simplified the string expression in F1 (made it shorter really) and it worked fine.
Thanks for your time
I managed to work around the error. I simplified the string expression in F1 (made it shorter really) and it worked fine.
Thanks for your time
ASKER
Apart from the backslash after the word "Documents" it isn't really that much different, but I'm afraid it still throws up an error.I'm using Excel 2010 if that's significant.