PC Review


Reply
Thread Tools Rate Thread

Check If Form Open or Not

 
 
kirkm
Guest
Posts: n/a
 
      6th Mar 2008
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
 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      6th Mar 2008
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
kirkm
Guest
Posts: n/a
 
      7th Mar 2008

Thanks Bob, That did it brilliantly.

Cheers - Kirk
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Check if a form is open? Mike Microsoft Access 1 8th Jun 2005 12:47 PM
How to check if a form is open Pele Microsoft Access Macros 0 23rd Nov 2004 10:05 PM
check to see of a form is open Karen Microsoft Access Form Coding 2 9th Aug 2004 07:01 PM
How can I check if a form is open Paul Microsoft Access Form Coding 2 4th Aug 2004 03:50 PM
Open form cHECK A. Atzert Microsoft Access Forms 1 30th Dec 2003 02:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:29 AM.