Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,560
Default detect userform

Hi
I have a modeless userform which i want to unload before i run a macro
I am using the following code:
if myform.visible then
unload myform
else
'do nothing
end if
if the form was loaded then it is immediately unloaded - no problem
however, if the form was not loaded then the code above forces the
myform.initialize to run (and then nothing happens). No damage done but it
seems there is probably a better way?
Thanks


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
Anyway to detect a new page NateBuckley Excel Programming 4 May 19th 08 04:26 PM
Detect Cell Changes aga2957[_5_] Excel Programming 4 August 21st 06 06:03 AM
How to detect last row of Selection? [email protected] Excel Programming 2 April 10th 06 05:56 AM
What event to detect click on UserForm ListBox? Don Wiss Excel Programming 1 August 26th 05 10:35 PM
Detect Outlook Pete[_4_] Excel Programming 4 June 10th 05 10:59 AM


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