LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default SaveAs works on one PC, not another. "Save" not really an option. What to do?

I have an app that uses Office Automation and that until several weeks ago
worked fine on my desktop and on my laptop. Now it works fine on my laptop,
but on my desktop it crashes.

The app has an open XL workbook and when I attempt to execute the line
oxlWks.Application.ActiveWorkbook.SaveAs fileName:=fname,
FileFormat:=xlNormal
it gives me an error. Either the error is "the server threw an exception"
or "Method SaveAs failed" . Part of the problem is that this XL workbook is
created by a 3rd-party ActiveX component that is quite old and so it creates
the workbook in Excel 5.0 format. So I use SaveAs rather than Save so that
I can overwrite the file with the current Office 2000 format.

I should point out that the latest variant of the CoolWebSearch trojan has
invaded my system and using standard tools (AdAware, Spybot, HijackThis,
CWshredder) have not fixed the problem. So that might be the cause, or it
could be something else.

My Desktop and Laptop both have the same version of Office though the laptop
uses WinNt and the Desktop WinXP.

I cannot delete the copy of the workbook on my HD and then do the SaveAs,
because I opened that file to begin with (it is the same file that I am
working with). I could save this file with the correct fmt and
a temporary name then delete the original file and rename this one, but that
strikes me as an inelegant solution.

So, what other options do I have? There appears to be no way to use the
Save command and at the same time to specify changing the fileformat from Xl
5.0 to the current version. SaveAs bombs out and there are lots of threads
in the Google archives about this, but no solution that seems to make sense
to me (other than try early binding rather than late binding). Does anyone
else have an idea about what might be causing this and how I can fix it?

<end of rambling post
Thanks.
CA


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"Save" and "Save As" options greyed out - "Save as Webpage" option Bill Excel Discussion (Misc queries) 0 January 16th 07 04:47 PM
Disable "save" option on close. PG Excel Discussion (Misc queries) 2 September 6th 06 12:15 AM
Disabling "SAVE AS" option under "File" Bidyut Bhattacharjee Excel Discussion (Misc queries) 3 March 22nd 06 06:35 PM
"Save as template" option Lesley Excel Worksheet Functions 1 January 27th 06 06:34 AM
When is "?" really a "?" (.SaveAs with Chinese chars) Nick Cranham Excel Programming 0 February 13th 04 11:01 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"