PC Review


Reply
Thread Tools Rate Thread

Baffled, can record macro, and then RTE5. Macro works fine on another PC. Excel2007

 
 
New Member
Join Date: Sep 2011
Posts: 2
 
      27th Sep 2011
Windows Server 2003, SP2.
All I want to do is open another excel sheet, and save it as a pdf.

I record it on the 2003 server and the functionality works. Opens the xls and saves as pdf. But if I run the macro I get RTE 5 (invalid procedure call or argument)

If i email the files to another PC Winodws 7, Office 2007, the macro works fine.

-----------------
Sub Macro2()
'
' Macro2 Macro
'

'
ChDir "C:\temp1"
Workbooks.Open Filename:="C:\temp1\ADOCERNERLabOrders.xls"
ActiveSheet.ExportAsFixedFormat Type:=xlTypePDF, Filename:= _
"C:\temp1\results1.pdf", Quality:=xlQualityStandard, IncludeDocProperties:= _
False, IgnorePrintAreas:=False, OpenAfterPublish:=False
End Sub
---------------------------------------------------

Any help would greatly be appreciated.

Thanks again,

Boyd
 
Reply With Quote
 
 
 
 
New Member
Join Date: Sep 2011
Posts: 2
 
      27th Sep 2011
Issue resolved.

Bug with Office 2007 and pdf. needed to install Office 2007 SP2
 
Reply With Quote
 
Captain Crunchie, Retired
muckshifter's Avatar
Join Date: Mar 2002
Location: In a Hovel
Posts: 19,978
 
      27th Sep 2011
thanks for reporting back, glad you got it sorted.



 
I'm not grouchy by nature, it takes constant effort.



Flickr

Every day I beat my own previous record for number of consecutive days I've stayed alive.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HELP!! my macro works fine in debug mode but NOT when running MDVe General Software 0 5th Sep 2011 08:40 AM
Macro hangs up often but sometimes works fine Jeff Microsoft Excel Worksheet Functions 3 13th Jun 2006 01:01 PM
Macro works fine on PC; fails on Mac marlea Microsoft Excel Programming 1 20th Mar 2006 08:26 PM
Solver GUI works fine, but the VBA macro won't return any results =?Utf-8?B?QmVuIEFuZGVyc29u?= Microsoft Excel Programming 3 24th Jun 2005 02:48 PM
Macro works fine in xl2002 but does not in xl 2000 Nolin Microsoft Excel Programming 1 25th Feb 2004 05:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:50 AM.