Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 33
Default Excel 97 and Excel 2000 run time error

I wrote a macro in Excel 2000. Part of it checks a
particular cell and reads the value. This cell should be
a number (and is defined as such). When a client trys to
use my macro on Excel 97 he gets a run time error, type
mismatch. When he opens visual basic it points to the
line where I check the value of this cell to see if it
already appear in a database keep in a separate sheet. I
am not able to recreate this on my computer. Also I am
using protected and unprotected cell on is sheet too (I am
not sure if this would be related). The run-time error
appears when he tries to execute my macro. Do you have
any advice?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Excel 97 and Excel 2000 run time error

Andy,

If you develop for 3rd parties..

If you dont have an old copy of Excel97 lying around, then you'll have a
problem... else I'd advise you to install excel97. (different versions can
be installed on the same machine without problems, but it is advisable to
install them in "ascending" sequence starting with the olders version.)

You may do your development in your more recent version,
but CAN test for compatibility in Excel97 when required.

You cant begin to guess the number of changes nor their little
intricacies. You'll need to debug yourself on xl97.

After a while you'll get a feeling of what to avoid when building for
older versions... Or simply decide to develop in xl97 in the first place.

Excel 2000 has a whole bunch of enhancements. Protection structure among
them. VBA version increased to VBA6 and includes many little things that
you have have used unknowingly. (split, instrrev ?)

Check MSDN or VBA help and start with "What's new"
Alas I dont know a site that has a comprehensive list of ALL the changes..

If you want.. and if it's not 10 modules and 2000 lines of code...
email your book to me (ZIPPED!)...and I'll have a look.
address below.



keepITcool

< email : keepitcool chello nl (with @ and .)
< homepage: http://members.chello.nl/keepitcool


"Andy" wrote:

I wrote a macro in Excel 2000. Part of it checks a
particular cell and reads the value. This cell should be
a number (and is defined as such). When a client trys to
use my macro on Excel 97 he gets a run time error, type
mismatch. When he opens visual basic it points to the
line where I check the value of this cell to see if it
already appear in a database keep in a separate sheet. I
am not able to recreate this on my computer. Also I am
using protected and unprotected cell on is sheet too (I am
not sure if this would be related). The run-time error
appears when he tries to execute my macro. Do you have
any advice?


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
Strange 'protected cell' error affecting Excel 2003 but not Excel 2000? Pheasant Plucker® Excel Discussion (Misc queries) 1 April 10th 07 01:04 PM
Macro error after switching from Excel 2000 to Excel 2003 Jake Burnham Excel Discussion (Misc queries) 1 January 10th 06 08:10 PM
Excel 2000 Vs Excel 2002 - Compile Error Dave Peterson[_3_] Excel Programming 0 September 30th 03 02:34 AM
HELP!! Excel 2000 Copy of worksheet class failed run time Error 1004 Martin[_6_] Excel Programming 1 August 2nd 03 03:16 PM
Run-time error 13 between Win NT and Win 2000 Antje Crawford Excel Programming 1 July 30th 03 01:13 PM


All times are GMT +1. The time now is 02:09 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"