Splash Screen In Excel XP Still Looking 
Author Message
 Splash Screen In Excel XP Still Looking

Hello all,
I have a continuing problem with a splash screen. i have
included the code below. the form works but i cannot get
it to open upon startup of the workbook. VB is new to me
i have purchased a book to learn unfortunately it's been
quite useless!
This bit of code is in my UserForm:

Private Sub UserForm_Activate()
    Application.OnTime Now + TimeValue("00:00:02"),
("KillTheForm")
End Sub

And then in Module1 I have this:

Private Sub Workbook_Open()
    UserForm.Show
End Sub
Private Sub KillTheForm()
    Unload UserForm
End Sub
I got this piece of code from
www.j-walk.com/ss/excel/tips/tip39.htm

The screen will display for two seconds when i run the
code but it will not run upon startup of the workbook?!
Can anyone please help me figure out what i'm
doing wrong? Should i have the Open command in the form
or in the module? I've tried both and i get the same
answer it'll display but not on startup.
Thanks,
Kevin M



Mon, 08 Nov 2004 23:33:36 GMT  
 Splash Screen In Excel XP Still Looking
Hi,

This code should not be in Module1:
Private Sub Workbook_Open()
     UserForm.Show
 End Sub

Place the Workbook_Open() code in the module for the ThisWorkbook object
Double click ThisWorkbook and paste the code


Quote:
> Hello all,
> I have a continuing problem with a splash screen. i have
> included the code below. the form works but i cannot get
> it to open upon startup of the workbook. VB is new to me
> i have purchased a book to learn unfortunately it's been
> quite useless!
> This bit of code is in my UserForm:

> Private Sub UserForm_Activate()
>     Application.OnTime Now + TimeValue("00:00:02"),
> ("KillTheForm")
> End Sub

> And then in Module1 I have this:

> Private Sub Workbook_Open()
>     UserForm.Show
> End Sub
> Private Sub KillTheForm()
>     Unload UserForm
> End Sub
> I got this piece of code from
> www.j-walk.com/ss/excel/tips/tip39.htm

> The screen will display for two seconds when i run the
> code but it will not run upon startup of the workbook?!
> Can anyone please help me figure out what i'm
> doing wrong? Should i have the Open command in the form
> or in the module? I've tried both and i get the same
> answer it'll display but not on startup.
> Thanks,
> Kevin M



Tue, 09 Nov 2004 16:26:10 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. splash screen in Excel XP

2. LOOK:splash screen,baloon help etc

3. Looking for tool to make AVI files from JPG stills

4. Splash Screen Delay] Note on splashes

5. Automating Excel XP from Word XP

6. Compatibility Problem Using MS Excel 97 VBA on Excel 2000/XP - Causes crashes

7. Supress Access Splash Screen in Access 2000

8. Splash screen hints?

9. Access 2K splash screen

10. Splash screens

11. Splash screens in Access '97

12. Product registration info in splash screen

 

 
Powered by phpBB® Forum Software