Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a VB6 app that uses instantiates the Excel type
library, but they are different for Excel 97 and Excel 2K. How do I find which version is running so I know what type library to use? I have tried late binding by creating an object from the Excel.Application object, but this doesn't seem to work with different version of Excel. Any other suggestions on how to do be able to have one app run on different computers running different versions of Excel would be greatly appreciated. Thanks in advance, WayneM |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
for my xp home, I get 10 when I use this.
MsgBox Left(Application.Version, 2) so if Left(Application.Version, 2)<10 then or use a select case for several versions. "WayneM" wrote in message ... I have a VB6 app that uses instantiates the Excel type library, but they are different for Excel 97 and Excel 2K. How do I find which version is running so I know what type library to use? I have tried late binding by creating an object from the Excel.Application object, but this doesn't seem to work with different version of Excel. Any other suggestions on how to do be able to have one app run on different computers running different versions of Excel would be greatly appreciated. Thanks in advance, WayneM |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi WayneM,
I have tried late binding by creating an object from the Excel.Application object, but this doesn't seem to work with different version of Excel. What specifically doesn't work? Late Binding should work well for the situation you describe. Just make sure all Excel-related objects are delcared As Object, and you need to use the actual values of Excel built-in constants instead of the constant names. -- Regards, Jake Marx MS MVP - Excel WayneM wrote: I have a VB6 app that uses instantiates the Excel type library, but they are different for Excel 97 and Excel 2K. How do I find which version is running so I know what type library to use? I have tried late binding by creating an object from the Excel.Application object, but this doesn't seem to work with different version of Excel. Any other suggestions on how to do be able to have one app run on different computers running different versions of Excel would be greatly appreciated. Thanks in advance, WayneM |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do you find the version of the EXCEL program??? | Excel Discussion (Misc queries) | |||
How do I find/open older version of file in Excel 2007? | Excel Discussion (Misc queries) | |||
download trial version excel 2003? can only find trial version 200 | Excel Discussion (Misc queries) | |||
Find Version of Excel workbook is saved as | Excel Discussion (Misc queries) | |||
Modify Macro Code Depending on Excel Version | Excel Discussion (Misc queries) |