Results 1 to 3 of 3

Thread: [RESOLVED] Splash Screen under VBA for Visio

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    5

    [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.

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2005
    Posts
    5

    Re: Splash Screen under VBA for Visio

    Rob - thanks for the warm welcome and the advice. That was exactly what I needed.

    VB Code:
    1. Sub Splash_Screen()
    2. Dim istart, istick As Double
    3. istick=3 'length of splash in seconds
    4. SplashScreen.Show vbModeless
    5. istart = Timer
    6. Do While Timer < istart + istick
    7.     DoEvents
    8. Loop
    9. SplashScreen.Hide
    10. 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
  •  



Click Here to Expand Forum to Full Width