#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default variables

I have about 50 variables that when a user clicks a reset
button all the variables are set to their original state.
example:

a = False
b = ""
c = 0
d = Nothing

this group of variables accounts for every module level
variable.

My question is, is there an easier way to reset these
variables with some type of for next loop or
procedure/method that could accomplish this without having
them all coded as above?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default variables

No. Not a good way. You could issue an END statement but that stops code
execution as well.

Regards,
Tom Ogilvy

"jim c." wrote in message
...
I have about 50 variables that when a user clicks a reset
button all the variables are set to their original state.
example:

a = False
b = ""
c = 0
d = Nothing

this group of variables accounts for every module level
variable.

My question is, is there an easier way to reset these
variables with some type of for next loop or
procedure/method that could accomplish this without having
them all coded as above?

TIA



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
Sum if 2 variables ksel Excel Discussion (Misc queries) 6 June 18th 09 09:45 AM
Not at all clear on use of variables and/or object variables JMay-Rke Excel Discussion (Misc queries) 11 July 4th 08 06:36 PM
How do I add variables Jez Excel Discussion (Misc queries) 1 January 15th 07 08:33 AM
Variables in VBA Jeff Excel Discussion (Misc queries) 2 October 17th 06 02:30 PM
SUM IF and two variables Leigh Ann Excel Worksheet Functions 6 May 25th 05 03:24 AM


All times are GMT +1. The time now is 11:09 AM.

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"