Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tod tod is offline
external usenet poster
 
Posts: 114
Default Using XP Events with Excel 2000 Users

Now that most of my users have upgraded to XP, I've
started using some XP code in my procedures. Some of the
users are still using Excel 2000. To get around that, I
put the procedures that use XP code in a separate module.
Then I do this:

'Where separate module is called XP_Procs
If Application.Version = "10.0" then
Call XP_Procs.MyProcedureWithXPCode
Else
'Version for Excel 2000
End if

This works fine. However, it does not work for events. For
example, I'd like to use the Worsheet_PivotTableUpdate
event. If I as much as put the empty event on a sheet and
an Excel 2000 user pivots the table on that sheet, it will
display an error when it does not recognize the event. I
can't put the worksheet event in a separate module. So...
does anyone know how I can take advantage of XP events in
such a way that Excel 2000 users do not get errors?

tod
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 733
Default Using XP Events with Excel 2000 Users

"Tod" wrote...
Now that most of my users have upgraded to XP, I've
started using some XP code in my procedures. Some of the
users are still using Excel 2000. To get around that, I
put the procedures that use XP code in a separate module.

....
does anyone know how I can take advantage of XP events in
such a way that Excel 2000 users do not get errors?


No. And thank you for an absolutely classic example of why any and all
developers in any and all companies need to be given the *OLDEST* and
*SLOWEST* hardware and software that's in use *BY* *ANYONE* in their company
in order to prevent backward compatibility snafus such as this.

Until *ALL* of your users are upgraded, you should *AVOID* using *ANY* Excel
XP-specific functionality of any kind. Other stuff aside from event handlers
may seem to work most of the time, but there's no way you've tested all the
possible combinations of circunstances your users can throw at your models
in a single week. Meaning there's no way you can be certain 2K and XP users
get the same results from the same inputs unless they use exactly the same
formulas and VBA code (modulo known changes in some worksheet functions).


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
Excel 2000, format changes from users Concernicus Excel Discussion (Misc queries) 0 July 22nd 09 09:26 PM
Prevent users from adding rows in Excel 2000 ALEX Excel Discussion (Misc queries) 4 October 10th 06 05:18 PM
Excel 2000 Formula Not Working Other Users Arrakeen2000 Excel Discussion (Misc queries) 1 February 10th 06 05:36 PM
allow users to edit a range in excel 2000 jimar Excel Discussion (Misc queries) 6 August 24th 05 08:12 PM
How-To - Forwarding Excel 2000 events to .Net application Joel Foner Excel Programming 0 January 28th 04 11:34 PM


All times are GMT +1. The time now is 04:30 AM.

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

About Us

"It's about Microsoft Excel"