2003 to 2007 save file to document share website

Katieg

New Member
Joined
Jul 21, 2011
Messages
2
Hi All,

I have recently upgraded from excel 2003 to 2007 and I am currently ensuring all the 03 vba code works in 07. And there is one point which I am completely stuck on.

In vba I am trying to save a workbook to a document share site. This code works fine in excel 2003 but in 2007 I get the error: "runtime error 1004", and line b is highlighted.

.''some copying and pasting code here...
.
line a: ActiveWorkbook.Save
line b: ActiveWorkbook.SaveAs docshare, FileFormat:=56

where docshare = http://docshare/otherparts/file1.xls

I have also tried closing the file down, then re-opening it and then saving it to the docshare, but that gives me the same error.

I have also tried doing a CopyFile to the docshare, but then I get other errors.

This code works perfectly well in 2003, what could be causing this in 2007?

Many thanks in advance for any help offered.

Katie
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Ok, I have found the source of the problem..

I am creating a file in excel 2007 and saving it as 2003 format. This produces a file >50Mb. Which is the size limit allowed to upload to the docshare.

When I create the same file in excel 2003 it creates a smaller file, <50Mb, so is allowed to be uploaded to the docshare.

So my question is now: How to create smaller files in excel 2007? They need to be in 2003 format so my colleagues can open them.

Why does saving them in an older format increase the file size so much??
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,876
Members
452,949
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top