SaveCopyAs does not work

  • Thread starter Thread starter Den
  • Start date Start date
D

Den

Has anyone run into this before??

I have a link to a spreadsheet on our intranet. When I click on the link, I
am asked if I want to open the file or save it localy. If I open the file
in internet explorer (any version) then a piece of code like this

ActiveWorkbook.SaveCopyAs (filepath)

does not work. I just get an error message that it failed.

But if I save the file locally and then open it in Excel, the code works
fine.

Any suggestions, other than just give my people instructions to save it
locally first.

Dennis
 
Den,
I have similar problem with network files opened through Excel, where part
of the path/file name contains non ANSI character. My computer is English
W2K with English Office 2K, network is traditional Chinese.

Do .SaveAs or .Save work as expected ?

NickHK
 
Den

Are you sure you are using the fully expanded path for your file? The documentation shows an example for SaveCopyAs as follows (which you probably already know)

ActiveWorkBook.SaveCopyAs "C:\TEMP\XXX.XLS

Hank
 
Yes, I am using the full path. It simply does not work when you open the
file as a link within Internet Explorer. I have tried it on various
machines with various confiurations of IE and operating systems. The
result is always the same.

I have check "rights" on directories. Used different shares and directories,
even local to the machine. Still won't work. SaveCopyas simply does not
work when excel is run within Internet Explorer.

Dennis

Hank said:
Den,

Are you sure you are using the fully expanded path for your file? The
documentation shows an example for SaveCopyAs as follows (which you probably
already know).
 
I get the same problem, Den.
I assume it's some sort of half-baked attempt at anti-worm protection.

In the end, it's probably easiest to find a workaround that works with
..SaveAs instead.

Or to give instructions to the users to save the file before opening it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SaveCopyAs changes SheetName 2
saveCopyAs 1
SaveCopyAs 4
savecopyas question 1
savecopyas saves as file type 4
Protect with "SaveCopyAs" 6
SaveCopyAs 4
SaveCopyAs 4

Back
Top