Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show Splash Screen in MS Excel

Status
Not open for further replies.

bnc123

Technical User
Mar 25, 2001
59
AU
I have made a splash screen for my spreadsheet, which shows-up for a couple of seconds when one opens the spreadsheet. Then it disappears. I created it using the instructions on
I made a userform and then a macro to kill that form etc. etc. So far, so good.

Is there any way I can make that splash screen appear again by clicking on a button or something, just like showing the "About" screen of a software?

FYI, I am a total zero in Visual Basic.
 

Hi,

Put the part of the code that makes the form visible in a separate procedure
Code:
Sub DisplayFlash()

End Sub
Then you can call DisplayFlash EITHER from Wotkbook_Open event or from a button (Assign DisplayFlash to the button)

Skip,

[glasses] [red]A palindrome gone wrong?[/red]
A man, a plan, a ROOT canal...
PULLEMALL![tongue]
 
In order for the user to close the splash when activated manually (as from an About... menu command or button) consider the following:
Add a CommandButton to the Userform that when clicked will close the form. Set the CommandButton's Caption to 'Close' and its Visible property to False. Using Skip's procedure, make this modification:
Code:
Sub DisplaySplash(byVal DisplayCloseButton As Boolean)
   If DisplayCloseButton Then
     YourUserformName.YourCommandButtonName.Visible = True
   End If
   [green]'Other code here[/green]
End Sub

Note: I'm assuming the splash screen will not "time out" when activated manually.


Regards,
Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top