Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Userform Status

Does anyone know what code to use to see if a userform is showing or if a
macro is running?

Basically I would like to know how to write the following if then statements:
------
If userform1.show=true then
End if
------
If macro1 is running then
End if
------

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Userform Status

You could create global variables in your code and set them when the form is
activated, and unset when it is hidden or unloaded. Similarly for a macro.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Noah" wrote in message
...
Does anyone know what code to use to see if a userform is showing or if a
macro is running?

Basically I would like to know how to write the following if then

statements:
------
If userform1.show=true then
End if
------
If macro1 is running then
End if
------

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
reuest formula for auto update status & status date PERANISH Excel Worksheet Functions 5 June 2nd 08 04:26 PM
display status bar value in excel userform? Al B Excel Discussion (Misc queries) 0 November 15th 06 01:21 PM
Looping procedure calls userform; how to exit loop (via userform button)? KR Excel Programming 6 July 27th 05 12:57 PM
Need a msg box that displays time status or loading status havocdragon Excel Programming 2 April 2nd 05 05:29 PM
How to use the Status Bar in a UserForm Jeff Marshall Excel Programming 1 October 12th 03 02:44 PM


All times are GMT +1. The time now is 11:46 PM.

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"