Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running Excel 2000 VBA Application on Excel 2003
I have a VBA application written in Excel 2000. Running the appl on Excel 2003 generated errors, and the appl would not run on the Excel 2003 PC. (I can't remember exactly what the errors read, but Excel 2003 didn't recognize some components or code. And the code would not compile.) The appl contains about 10 forms, custom menus, macros, & custom functions. The forms have standard, native controls that include simple text boxes, command buttons, spin buttons, combo boxes, & labels. All controls are on forms -- no controls are imbedded in worksheets. I can run an earlier version of the same Excel 2000 VBA appl on the same Excel 2003 PC with no problems. But this earlier version has no forms and no custom menus, just macros & custom functions. I suspect the forms are causing the errors, and the problem is the Excel 2003 object libraries are different from the Excel 2000 object libraries. And, I'll need to set references in Excel 2003 to the Excel 2000 object libraries. These are the libraries I suspect that I have to set references for: - Microsoft Office 9.0 Object Library (MSO9.DLL) - Microsoft Excel 9.0 Object Library (Excel9.OLB) (If they are even listed in Excel 2003. I didn't look, and the PC is at a different location. I'll be trying to get the appl working on Wed, Aug 9. But, I'll be at that other location tonight, Tue, Aug 8th, & will have some brief time on that Excel 2003 PC.) Am I barking up the right tree, or just howling at the moon? Any confirmation, hints, traps, or other possibilities would be appreciated. Also, these are the object libraries that are referenced in Excel 2000 where the appl was developed: - Visual Basic For Applications (VBE6.DLL) - Microsoft Excel 9.0 Object Library (Excel9.OLB) - OLE Automation (stdole2.tlb) - Microsoft Forms 2.0 Object Library (FM20.DLL) - Microsoft Office 9.0 Object Library (MSO9.DLL -- ZimF ----------------------------------------------------------------------- ZimFL's Profile: http://www.excelforum.com/member.php...fo&userid=3721 View this thread: http://www.excelforum.com/showthread.php?threadid=56949 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running Excel 2000 VBA Application on Excel 2003
You asked the same question earlier, but without some idea of the error(s)
being raised, the only answer is "something's wrong". NickHK "ZimFL" wrote in message ... I have a VBA application written in Excel 2000. Running the appl on Excel 2003 generated errors, and the appl would not run on the Excel 2003 PC. (I can't remember exactly what the errors read, but Excel 2003 didn't recognize some components or code. And the code would not compile.) The appl contains about 10 forms, custom menus, macros, & custom functions. The forms have standard, native controls that include simple text boxes, command buttons, spin buttons, combo boxes, & labels. All controls are on forms -- no controls are imbedded in worksheets. I can run an earlier version of the same Excel 2000 VBA appl on the same Excel 2003 PC with no problems. But this earlier version has no forms and no custom menus, just macros & custom functions. I suspect the forms are causing the errors, and the problem is the Excel 2003 object libraries are different from the Excel 2000 object libraries. And, I'll need to set references in Excel 2003 to the Excel 2000 object libraries. These are the libraries I suspect that I have to set references for: - Microsoft Office 9.0 Object Library (MSO9.DLL) - Microsoft Excel 9.0 Object Library (Excel9.OLB) (If they are even listed in Excel 2003. I didn't look, and the PC is at a different location. I'll be trying to get the appl working on Wed, Aug 9. But, I'll be at that other location tonight, Tue, Aug 8th, & will have some brief time on that Excel 2003 PC.) Am I barking up the right tree, or just howling at the moon? Any confirmation, hints, traps, or other possibilities would be appreciated. Also, these are the object libraries that are referenced in Excel 2000 where the appl was developed: - Visual Basic For Applications (VBE6.DLL) - Microsoft Excel 9.0 Object Library (Excel9.OLB) - OLE Automation (stdole2.tlb) - Microsoft Forms 2.0 Object Library (FM20.DLL) - Microsoft Office 9.0 Object Library (MSO9.DLL) -- ZimFL ------------------------------------------------------------------------ ZimFL's Profile: http://www.excelforum.com/member.php...o&userid=37211 View this thread: http://www.excelforum.com/showthread...hreadid=569497 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running Excel 2000 VBA Application on Excel 2003
Hi Nick, The 1st error displayed as the appl opened, & read: "Could not load because an object is not available on this machine." The error message title was "Microsoft Form" After clicking the error message OK button, the appl opened. It appeared normal, but there are no VBA controls or functionality imbedded in the worksheet. When I attempted to activate one of the macros (via an image with the macro assigned to it), another error message displayed the following: "Compile error in hidden module: modText" The error message title was "Microsoft Visual Basic" "modText" is the name of one of the modules in the appl. When I tried to compile the code, another error message read: "Compile error: Can't find project or Library." The error message title was "Microsoft Visual Basic" Also, these are the object libraries that are referenced in Excel 2003 where I'm trying to run the appl. - Visual Basic For Applications - Microsoft Excel 11.0 Object Library - OLE Automation - Microsoft Forms 2.0 Object Library - Microsoft Office 11.0 Object Library - Missing Microsoft Office Web Components 9.0 - Ref Edit I have the objects' DLL & OLB files on my Excel 2000 PC. Do you know if I can simply copy these files to the Excel 2003 PC, and then set references to those objects from within the VBE? Or, do I have to use the Excel 2003 installation task? Or, is this not even part of the solution -- ZimF ----------------------------------------------------------------------- ZimFL's Profile: http://www.excelforum.com/member.php...fo&userid=3721 View this thread: http://www.excelforum.com/showthread.php?threadid=56949 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Running Excel 2000 VBA Application on Excel 2003
Given that everyone seems to have trouble running previously good code on XL
2003, I'll stick with my trusty 2K version for a while yet. #1: A control(s) is missing from XL2003 box that is present on XL2K box. #2: As the message says, you have an error the routine modText. Check the code. #3: Check the ToolsReferences and uncheck and note those marked as "Missing". Seems like the MS OWC is not installed. This is probably the cause of #1 and #2 . Either install this (I guess it is an optional install in Office 2003), or do not use those controls from this library. NickHK "ZimFL" wrote in message ... Hi Nick, The 1st error displayed as the appl opened, & read: "Could not load because an object is not available on this machine." The error message title was "Microsoft Form" After clicking the error message OK button, the appl opened. It appeared normal, but there are no VBA controls or functionality imbedded in the worksheet. When I attempted to activate one of the macros (via an image with the macro assigned to it), another error message displayed the following: "Compile error in hidden module: modText" The error message title was "Microsoft Visual Basic" "modText" is the name of one of the modules in the appl. When I tried to compile the code, another error message read: "Compile error: Can't find project or Library." The error message title was "Microsoft Visual Basic" Also, these are the object libraries that are referenced in Excel 2003 where I'm trying to run the appl. - Visual Basic For Applications - Microsoft Excel 11.0 Object Library - OLE Automation - Microsoft Forms 2.0 Object Library - Microsoft Office 11.0 Object Library - Missing Microsoft Office Web Components 9.0 - Ref Edit I have the objects' DLL & OLB files on my Excel 2000 PC. Do you know if I can simply copy these files to the Excel 2003 PC, and then set references to those objects from within the VBE? Or, do I have to use the Excel 2003 installation task? Or, is this not even part of the solution? -- ZimFL ------------------------------------------------------------------------ ZimFL's Profile: http://www.excelforum.com/member.php...o&userid=37211 View this thread: http://www.excelforum.com/showthread...hreadid=569497 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Running Excel 2000 VBA Application on Excel 2003 | Excel Worksheet Functions | |||
Excel 2000 VBA Application on Excel 2003 | Excel Programming | |||
Using Excel 2000 VBA Application on Excel 2003 | Excel Worksheet Functions | |||
Anyone have troubles running 2003 macros in 2000 version of Excel | Excel Discussion (Misc queries) | |||
Running excel as an application | Excel Programming |