Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check If Form Open or Not
I'm prety sure this is Access code
Function IsOpen(szName As String) IsOpen = (SysCmd(acSysCmdGetObjectState, acForm, szName) < 0) End Function Anyone know the Excel equivalent? Thanks - Kirk |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check If Form Open or Not
Function IsLoaded(szName As String)
Dim frm As Object For Each frm In UserForms If frm.Name = szName Then IsLoaded=True Exit For End If Next frm End Function -- --- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "kirkm" wrote in message ... I'm prety sure this is Access code Function IsOpen(szName As String) IsOpen = (SysCmd(acSysCmdGetObjectState, acForm, szName) < 0) End Function Anyone know the Excel equivalent? Thanks - Kirk |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check If Form Open or Not
Thanks Bob, That did it brilliantly. Cheers - Kirk |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
make a check form, and then have info go to a check register | Excel Worksheet Functions | |||
Using a template form, advance a form number everytime you open | Excel Discussion (Misc queries) | |||
form check box | Excel Worksheet Functions | |||
Check if form is open | Excel Programming | |||
Is it possible to open the VBA form with a link in a sheet and to pass variable from a cell to the VBA form? | Excel Programming |