Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / June 2005

Tip: Looking for answers? Try searching our database.

Detect if a Form is opened

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vince - 09 Jun 2005 10:20 GMT
Hi,

I would like to find out if a form is loaded or not. In VB I do something
like:

Private Function IsLoaded(frmname As String) As Boolean
  Dim item As Form
  IsLoaded = False
  For Each item In Forms
      If item.Name = frmname Then
          IsLoaded = True
          Exit Function
      End If
  Next item
End Function

but I don't have a Form type in VBA. How to I modify this under VBA so that
it works?

TIA,
Vince
Jean-Guy Marcil - 09 Jun 2005 14:18 GMT
Vince was telling us:
Vince nous racontait que :

> Hi,
>
> I would like to find out if a form is loaded or not. In VB I do

See Jezebel's answer to the exact same question posted by stephenc on June
6th in this newsgroup.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Vince - 10 Jun 2005 02:03 GMT
Thanks!
> Vince was telling us:
> Vince nous racontait que :
[quoted text clipped - 5 lines]
> See Jezebel's answer to the exact same question posted by stephenc on June
> 6th in this newsgroup.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.