?
Solved

Excel range to PDF

Posted on 2012-09-06
3
Medium Priority
?
272 Views
Last Modified: 2012-09-07
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").ExportAsFixedFormat 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
0
Comment
Question by:Stephen Byrom
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
krishnakrkc earned 1500 total points
ID: 38375512
Does this

Range("SummaryChart").ExportAsFixedFormat 0, "C:\Documents\" & Range("F1").Value & ".pdf", 0

Open in new window


help you ?
0
 
LVL 1

Author Comment

by:Stephen Byrom
ID: 38377237
Thanks for the response.
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.
0
 
LVL 1

Author Closing Comment

by:Stephen Byrom
ID: 38378061
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
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question