Home |
Search |
Today's Posts |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
John,
there are differing views on this. I personally don't bother unless I have a big app and they become redundant early, then I do it to conserve memory. I am firmly of the belief that they clear at the end themselves, and I have had discussions with people on these boards about it (you can read one here http://tinyurl.com/azq7r if you are interested). People who maintain you should will clear object variables, but you don't see them clearing string variables, or even arrays! But, conversely, it never hurts to unset them. -- HTH Bob Phillips "John Pierce" wrote in message ... Bob, Thanks for the help. The problem wasn't on cancel but I put you code in my procedure anyway and it works. The difference seems to be the Error handling, something I'm not very good at. I saw some code recently where at the end the variables were set to Nothing. When I test this thing over and over it seems that it gets confused somewhat. Should I clear my variables and array, and if so how? *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Detecting Cancel in an InputBox Method | Excel Discussion (Misc queries) | |||
Error 424 with inputbox method after OK | Excel Programming | |||
Cancel button in Inputbox method | Excel Programming | |||
Using Arrays in InputBox Method | Excel Programming | |||
Inputbox method using type:=8 - How to Cancel? | Excel Programming |