Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am rather new to using Excel macros, but I have recently made an Excel
sheet with a VBA macro in Excel 2003. Some of our network users are still on 2000 or 2002 versions of Excel. Therefore they received compile errors when they try to use the macro. Is there any way to make this VBA macro work on their versions? Is there some sort of controls update that they can do to make this macro work, or is this macro going to only work on Excel 2003 and there is nothing I can do about it? Thanks for the assistance, ACFalcon |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You must write your code to work on the earliest version on which
it will run. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "ACFalcon" wrote in message ... I am rather new to using Excel macros, but I have recently made an Excel sheet with a VBA macro in Excel 2003. Some of our network users are still on 2000 or 2002 versions of Excel. Therefore they received compile errors when they try to use the macro. Is there any way to make this VBA macro work on their versions? Is there some sort of controls update that they can do to make this macro work, or is this macro going to only work on Excel 2003 and there is nothing I can do about it? Thanks for the assistance, ACFalcon |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This does not always work as the underlying object model has changed. Is this
not your experience? (See post titled Code to different object models, 9/8/05). -- John "Chip Pearson" wrote: You must write your code to work on the earliest version on which it will run. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "ACFalcon" wrote in message ... I am rather new to using Excel macros, but I have recently made an Excel sheet with a VBA macro in Excel 2003. Some of our network users are still on 2000 or 2002 versions of Excel. Therefore they received compile errors when they try to use the macro. Is there any way to make this VBA macro work on their versions? Is there some sort of controls update that they can do to make this macro work, or is this macro going to only work on Excel 2003 and there is nothing I can do about it? Thanks for the assistance, ACFalcon |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This seems atypical. Put up some sample code that works in xl2000 and
errors in xl2002. -- Regards, Tom Ogilvy "Wboson" wrote in message ... This does not always work as the underlying object model has changed. Is this not your experience? (See post titled Code to different object models, 9/8/05). -- John "Chip Pearson" wrote: You must write your code to work on the earliest version on which it will run. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "ACFalcon" wrote in message ... I am rather new to using Excel macros, but I have recently made an Excel sheet with a VBA macro in Excel 2003. Some of our network users are still on 2000 or 2002 versions of Excel. Therefore they received compile errors when they try to use the macro. Is there any way to make this VBA macro work on their versions? Is there some sort of controls update that they can do to make this macro work, or is this macro going to only work on Excel 2003 and there is nothing I can do about it? Thanks for the assistance, ACFalcon |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I've not experienced code that works in an earlier version but
bombs in a later version. Can you provide some examples? -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Wboson" wrote in message ... This does not always work as the underlying object model has changed. Is this not your experience? (See post titled Code to different object models, 9/8/05). -- John "Chip Pearson" wrote: You must write your code to work on the earliest version on which it will run. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "ACFalcon" wrote in message ... I am rather new to using Excel macros, but I have recently made an Excel sheet with a VBA macro in Excel 2003. Some of our network users are still on 2000 or 2002 versions of Excel. Therefore they received compile errors when they try to use the macro. Is there any way to make this VBA macro work on their versions? Is there some sort of controls update that they can do to make this macro work, or is this macro going to only work on Excel 2003 and there is nothing I can do about it? Thanks for the assistance, ACFalcon |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
IIRC, there was one transition (don't remember the versions involved) where a
VBA function that was written without a type declaration, so defaulted to Variant, would not compile in the newer version -- had to add the "As Variant" to the end of the function line, i.e. Function XXX() 'in original version had to be changed to Function XXX() As Variant On Fri, 9 Sep 2005 13:26:55 -0500, "Chip Pearson" wrote: I've not experienced code that works in an earlier version but bombs in a later version. Can you provide some examples? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Complicated One -- Get all app versions & sum each | Excel Worksheet Functions | |||
Please include fonts from previous versions ('98) in new versions | Excel Discussion (Misc queries) | |||
Two Versions | Excel Discussion (Misc queries) | |||
Need macro to work in 2000 and 2002 versions | Excel Programming | |||
Different VBA versions | Excel Programming |