|
-
Oct 28th, 2005, 07:58 PM
#1
Thread Starter
New Member
[RESOLVED] Splash Screen under VBA for Visio
I am coding VBA under Visio 2002 and having trouble scripting something as simple as a splash screen for our visio scripts. I am using a simple form.show when visio drawing is opened. Challenge is getting the form to properly display, time out, and then form.hide itself. I've tried opening the form modeless with loop delays but the form doesn't paint any details, just a blank square that then closes itself. The VB rich sleep and time related event calls are all missing from the VBA library under Visio. Does anyone have a solution to get the form to actually display, time out and close itself using VBA?
Last edited by googull; Oct 29th, 2005 at 11:27 AM.
-
Oct 28th, 2005, 08:24 PM
#2
Re: Splash Screen under VBA for Visio
welcome to the Forums.
You could do a For Loop delay based on the system time. If its x number of seconds or more then dismiss the splash screen. In the loop place a DoEvents
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Oct 28th, 2005, 11:26 PM
#3
Thread Starter
New Member
Re: Splash Screen under VBA for Visio
Rob - thanks for the warm welcome and the advice. That was exactly what I needed.
VB Code:
Sub Splash_Screen()
Dim istart, istick As Double
istick=3 'length of splash in seconds
SplashScreen.Show vbModeless
istart = Timer
Do While Timer < istart + istick
DoEvents
Loop
SplashScreen.Hide
End Sub
Last edited by googull; Oct 29th, 2005 at 12:26 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|