Hi everyone,
I have created a UserForm to which I embedded a Spreadsheet and a ChartSpace object in VBA 2003. When I upgraded to Office 2010, my form does not work. I get a message when I load the Excel file:
"Could not load some objects because they are not available on this machine". When I press Ok, another error message appears:
"Compile Error: Cannot find project or library". When I press help, then Excel suggests I go to References and select the missing reference etc. Howerver, Debug does not let me go to menu items. I simply cannot stop code execution and Reference menu item is dimmed in debug mode.
I came across in the internet that some controls are not supported in Office 2010. Just to make sure, I present a small excerpt from the form below, which worked just fine with Office 2003:
How can I stop debug and go to References to find the missing reference?
What might be wrong? Is there a compatibility issue between 2003 and 2010?
I initially used Office 2010 64 bit version, when I see the error, I switched back to 32 bit Office 2010. But the problem still resides...
Many thanks in advance...
I have created a UserForm to which I embedded a Spreadsheet and a ChartSpace object in VBA 2003. When I upgraded to Office 2010, my form does not work. I get a message when I load the Excel file:
"Could not load some objects because they are not available on this machine". When I press Ok, another error message appears:
"Compile Error: Cannot find project or library". When I press help, then Excel suggests I go to References and select the missing reference etc. Howerver, Debug does not let me go to menu items. I simply cannot stop code execution and Reference menu item is dimmed in debug mode.
I came across in the internet that some controls are not supported in Office 2010. Just to make sure, I present a small excerpt from the form below, which worked just fine with Office 2003:
Code:
With myForm.Spreadsheet1
.Range("b2").Value = 100
...
With myForm.ChartSpace1
.DataSource = myForm.Spreadsheet1
...
How can I stop debug and go to References to find the missing reference?
What might be wrong? Is there a compatibility issue between 2003 and 2010?
I initially used Office 2010 64 bit version, when I see the error, I switched back to 32 bit Office 2010. But the problem still resides...
Many thanks in advance...