Solved

Run-time Error '438'

Posted on 2014-10-01
3
385 Views
Last Modified: 2014-10-01
Hi Experts,

I have built a model in Excel 2010 but have to accommodate 2003 users... My code generally works but I'm getting a run-time error 438 (object doesn't support this property or method) when I run the following in 2003.:

ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, FileName:=FileNamePDFcatch, _
            Quality:=xlQualityStandard, IncludeDocProperties:=False, _
            IgnorePrintAreas:=False, OpenAfterPublish:=False

I assume it's because the syntax required to create the pdf has changed between 2003 & 2010.

Can anyone help me get the 2003 syntax?
I'm hoping that would still work in 2010...

Thanks
0
Comment
Question by:martywal
3 Comments
 
LVL 45

Accepted Solution

by:
aikimark earned 250 total points
ID: 40356171
PDF creation was not an option in Office 2003 products.  I had a similar situation at one of my client sites and had to add code that would 'print' to a PDF creating virtual printer (in this case, Bullzip) if the application version was below version 12 (2007).
0
 
LVL 33

Assisted Solution

by:Norie
Norie earned 250 total points
ID: 40356175
There is no ExportAsFixedFormat in Excel 2003, it was introduced in 2007.

You'll need to use a third party PDF tool for Excel 2003, Adobe Acrobat is one option but is costly, however there are other, free options, eg CutePDF.
0
 

Author Closing Comment

by:martywal
ID: 40356233
I was hoping that this wasn't the case :-(
Thanks for your responses.
Good improvement MS Excel! :-)
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

The canonical version of this article is on my web site here: http://iconoun.com/articles/collisions/ A companion presentation is available here: http://iconoun.com/articles/collisions/Unicode_Presentation.pdf
Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now