Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Excel bug, variables reset?

Using Excel 2002 and 2003.
Have come across situations where a public variable that was initialized
before later for no obvious reason became uninitialized. I couldn't find any
reason at all for this in my code. I just made sure that when the variable
was needed
it got initialized again.
I just read in the book Excel 2002 VBA by Stephen Bullen et al. the
following text (in a bold textbox, page 297):

There have been (relatively rare) cases, in Excel 97, where bugs in Excel
have caused variables to reset.
It would be wise to expect that bugs could also exist in later versions.

Is this known to happen in later Excel versions?
Are there particular situation where this is more likely to happen?

Thanks for any insight in this.


RBS

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,824
Default Excel bug, variables reset?

You didn't end your code (by clicking on the Reset button in the VBE)?

And you don't have any END's in your code?
(not "end with" or "end if", but bare naked End's???)

Maybe one more look through the code would be in order.

RB Smissaert wrote:

Using Excel 2002 and 2003.
Have come across situations where a public variable that was initialized
before later for no obvious reason became uninitialized. I couldn't find any
reason at all for this in my code. I just made sure that when the variable
was needed
it got initialized again.
I just read in the book Excel 2002 VBA by Stephen Bullen et al. the
following text (in a bold textbox, page 297):

There have been (relatively rare) cases, in Excel 97, where bugs in Excel
have caused variables to reset.
It would be wise to expect that bugs could also exist in later versions.

Is this known to happen in later Excel versions?
Are there particular situation where this is more likely to happen?

Thanks for any insight in this.

RBS


--

Dave Peterson

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Excel bug, variables reset?

http://support.microsoft.com/default...21&Product=ofw
OFF97: Displaying UserForm Designer Resets Global Variables

--
Regards,
Tom Ogilvy


"RB Smissaert" wrote in message
...
Using Excel 2002 and 2003.
Have come across situations where a public variable that was initialized
before later for no obvious reason became uninitialized. I couldn't find

any
reason at all for this in my code. I just made sure that when the variable
was needed
it got initialized again.
I just read in the book Excel 2002 VBA by Stephen Bullen et al. the
following text (in a bold textbox, page 297):

There have been (relatively rare) cases, in Excel 97, where bugs in Excel
have caused variables to reset.
It would be wise to expect that bugs could also exist in later versions.

Is this known to happen in later Excel versions?
Are there particular situation where this is more likely to happen?

Thanks for any insight in this.


RBS



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Excel bug, variables reset?

I thought it did happen without the VBE being open at all, but maybe I am
mistaken.
Will see.

RBS


"Tom Ogilvy" wrote in message
...
http://support.microsoft.com/default...21&Product=ofw
OFF97: Displaying UserForm Designer Resets Global Variables

--
Regards,
Tom Ogilvy


"RB Smissaert" wrote in message
...
Using Excel 2002 and 2003.
Have come across situations where a public variable that was initialized
before later for no obvious reason became uninitialized. I couldn't find

any
reason at all for this in my code. I just made sure that when the

variable
was needed
it got initialized again.
I just read in the book Excel 2002 VBA by Stephen Bullen et al. the
following text (in a bold textbox, page 297):

There have been (relatively rare) cases, in Excel 97, where bugs in

Excel
have caused variables to reset.
It would be wise to expect that bugs could also exist in later versions.

Is this known to happen in later Excel versions?
Are there particular situation where this is more likely to happen?

Thanks for any insight in this.


RBS




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
Reset Excel 2003 Jane Excel Discussion (Misc queries) 1 October 15th 09 06:10 PM
Excel . Reset Button - ?? [email protected] Excel Discussion (Misc queries) 5 March 7th 08 03:37 AM
reset last cell in Excel The Pedagogue Excel Worksheet Functions 1 March 29th 07 09:58 AM
Reset Variables Otto Moehrbach[_6_] Excel Programming 0 July 8th 04 08:50 PM
Glolbal Variables Reset when using OleObjects Rock Excel Programming 11 May 31st 04 03:00 AM


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