excel vba saveas not working - excel 2003 to sharepoint 2010 lib

Experts, I have a excel vba script that needs to saveas to a sharepoint 2010 library.  When the vba is executed from within excel 2007 or 2010, the saveas works correctly.  When using excel 2003, the users get a 1004 runtime error on the saveas.  here is the vba line:
ActiveWorkbook.SaveAs "https://dept.sp.xxx.com/sites/PPM/preproduction/vbom/VBOM%20Audit%20Files/" & Trim(filename), FileFormat:=56

where filename = 'filename.xls'

All users have read/write access to the lib.

I am guessing that there is a switch or something that needs to be set on the excel 2003 machines.  Any idea on what that might be, or any idea on why this won't work if it is not a switch?
jmathews1826Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
leonstrykerCommented:
Try it without the File Format parameter.

Leon
0
 
leonstrykerCommented:
Take a look here for some discussion http://www.rondebruin.nl/saveas.htm , especially this part:

        If Val(Application.Version) < 12 Then
            'You use Excel 97-2003
            FileExtStr = ".xls": FileFormatNum = -4143

Leon
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
 
jmathews1826Author Commented:
leonstryker, Thank You!!  Ironically, i saw a Excel memo on this regarding saving from within an excel 2007 vba and incorporated the file format number but never thought to look at this as a reason excel 2003 would not work.  I used the full IF test to look at versions, and act accordingly.  Thanks again!
0
 
leonstrykerCommented:
Sure, no problem. Thanks for the grade,

Leon
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.