VBA code/form missing in Excel 2007

  • Thread starter Thread starter megabite
  • Start date Start date
M

megabite

In Office 2003, I created an Excel file that includes a small form and some
VBA code. I want to use this same form and code in Excel 2007 - VSTO is not
an option. But when I open the file and go to Developer, Visual Basic, there
is no form and the code is blank.

How do I get this file to function in Excel 2007?
 
Hi, what do you mean "go to Developer, Visual Basic"

I can't see a menu item for Developer?
 
Excel Options, Popular, check the box labeled "Show Developer tab in Ribbon"
 
I still don't enjoy this 2007 stuff.

Are you looking in the correct proejct in the Visual Basic...? I just opened
an excel 2003 sheet with form and code, and both show.
 
well that there is the question.
I open the file in 2003 on another computer , the code and form are there.
I open the file in 2007, no code, no form. Why?
Is it a security thing? I think I turned it all off. Compatibility bug?
Something else?
 
Do you open the xls in 2007 ?
If you save the xls as a xlsx file in 2007 your code and form are gone.

If you have done that save the xls as xlsm and try it again
 
I open the file in 2007 as xls. I open it from a network drive so I am
opening exactly the same file in 2003 from another computer.

I have not, and will not, save the file in 2007 - I need it to remain
compatible with 2003.
 
Do you have the same problem when you open the same file from your desktop
 
yes, that's where it started.

went through all the version, security, network, compatibility issues I
could think of before coming here.
 
If you want you can send me the file private.
I will look at it for you this evening
 
Hi megabite

If I open the file in 2003 and 2007 I get this error:
"File error, Some number formats may have been lost"

If I delete the long values in B7:B14 that display like this 1874E+02 (value = 187.379396426012)
and save the file I see the code and form in 2007 when I open it and not see the error in both versions.
 
I saw those errors and was planning to find out why they occurred.

Following your instructions, I deleted the "bad" values in 2003, saved the
file, now I can see the code and form in 2003 and 2007. That's weird.

thanks Ron!
 

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

Back
Top