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 / August 2005

Tip: Looking for answers? Try searching our database.

Splash screen

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
G. Hagg - 24 Aug 2005 02:51 GMT
Been a while since i've been on this site

Using Word 2003, thanks again.
G. Hagg - 24 Aug 2005 04:07 GMT
From Ibby's MVP site, i found code for a splash screen when creating a new
document based on a template, the following works very well.

In the UserForm module:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

Private Sub UserForm_Activate()
    DoEvents
   ' Set the display time in milliseconds
    Sleep 5000
    Unload Me
End Sub

In a code Module:

Public Sub AutoNew()
   UserForm1.Show
End Sub

----------------------------------------------

Now, if i have a document open based on a normal template, and i attach a
custom template and want the splash screen to appear, how would the code
change.

Also, if i open an existing doc based on this custom template, how would the
code change.

Thanks

PS - Maybe these questions should have been posted in vba.userforms, but i
guess i should stay in vba.general.

Rate this thread:






 
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.