LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default UserForm Initialize event doesn't fire reliably

If Userforms.Count Then ' app is running

Sorry, didn't get that one.


Yes, I wasn't very clear! I didn't mean to suggest this single line was a
substitute for the full code.

Rather, for an app that whilst running will always have at least one
Userform loaded, if Userforms.Count is zero confirms that the app is not
running, otherwise it is.

As I said it was a FWIW, not directly related to your needs but a usage of
querying the collection for a particular purpose.

Regards,
Peter T



 
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
Event doesn't fire Frank Xia Excel Discussion (Misc queries) 6 February 11th 06 12:54 AM
Workbook Open event does not fire Robots Excel Programming 2 December 3rd 04 11:26 PM
Event class doesn't fire in embedded VBA Tornados[_5_] Excel Programming 0 September 28th 04 03:27 PM
Initialize event doesn't work Pop Excel Programming 1 May 19th 04 12:02 PM
Generic questions about variable scope the Initialize event TBA[_2_] Excel Programming 4 January 12th 04 03:42 PM


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