VBA compile error when opening Excel 2010 file in Excel 2003

Yuffster

New Member
Joined
Feb 3, 2015
Messages
7
Good afternoon all,

I have a built a file using Excel 2010 that will also be used by Excel 2003 users.

There is extensive VBA code within the file that works fine when the file is opened in 2003 initially. However, if a 2010 user makes any changes to the file, even if they save as an xls., the VBA will then display a compile error when re opened in 2003.

I have checked the code and the more specific issue seems to be the library/references.

So, first question: is this just a conversion issue? And secondly, is there a way to fix it so users of both versions can use the file?

Many thanks!
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
What references to other applications do you have set? Late binding is probably the simplest solution.
 
Upvote 0
It looks like the issue is when it re opens in 2003, the Microsoft Windows Common Controls 6.0 (SP6) is missing. Not sure if there is an automatic workaround for that?
 
Upvote 0
That's not really an Office version issue - some computers will have it based on OS and installed programs, others won't (and 64bit Office can't use them at all) . Are you actually using those controls?
 
Upvote 0
Hi Rory

Looks like it can live without that reference so I will remove it entirely.

Boy do I feel embarrassed that it was something so simple!

:laugh:
 
Upvote 0

Forum statistics

Threads
1,225,611
Messages
6,185,993
Members
453,334
Latest member
Prakash Jha

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