Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default VBA Macro Versions

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default VBA Macro Versions

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default VBA Macro Versions

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default VBA Macro Versions

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default VBA Macro Versions

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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 863
Default VBA Macro Versions

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Complicated One -- Get all app versions & sum each Livin Excel Worksheet Functions 1 August 19th 08 09:17 AM
Please include fonts from previous versions ('98) in new versions JJBQ Excel Discussion (Misc queries) 3 October 8th 05 07:19 PM
Two Versions Bill Excel Discussion (Misc queries) 3 December 1st 04 08:17 PM
Need macro to work in 2000 and 2002 versions Fred Smith Excel Programming 4 February 7th 04 11:50 PM
Different VBA versions Tommi[_2_] Excel Programming 2 December 3rd 03 10:25 AM


All times are GMT +1. The time now is 10:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"