![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
I created the following macro in Office 2000.
The user had no problem running it on his own computer using XP. However, on another computer at his workplace, he runs 97 and said it did not work. So I tried it on 97 and the following code gives the Death Sentence: "Excel has caused an error in Anyway, when I step through the following code it works fine and Excel 97 performs the same as 2000. Any one got a handle on this one? Thanks, Tom
[ This Message was edited by: TsTom on 2002-05-05 23:05 ] |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Auckland, New Zealand
Posts: 4,209
|
Stab in the dark...but try saving the workbook
as an Excel97/2000 file |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Thanks Ivan.
Is there a choice for that? I do not have a choice for 97 and 2000. From the save as list I gather that 97 and 2000 are one and the same. Thanks, Tom |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
|
Hi.
Found a solution, but I sure would like to know the principle behind it so I can avoid this in the future. When this line in the original code: If Range("A1") = 0 Then is changed to: If Range("A1").Value = 0 Then The code works fine. Any clues as to why? Thanks, Tom |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|