#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Splash Screen

Can someone tell me how to get a splash screen to come up only after a
certain date?? I know how to put the code in a userform, but have no idea to
only have it pop-up after an expiration date. I have a form that expires
each quarter and I want the user to see a pop-up window to have them contact
their admin for the lastest version.

Thanks
Brooke

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Splash Screen

Hi,

Maybe this.
Right click the userform and view the code and paste this in

Private Sub UserForm_Activate()
MyDate = #3/25/2008#
If Date = MyDate Then
MsgBox "The userform is out of date"
Unload Me
End If
End Sub

"Brooke" wrote:

Can someone tell me how to get a splash screen to come up only after a
certain date?? I know how to put the code in a userform, but have no idea to
only have it pop-up after an expiration date. I have a form that expires
each quarter and I want the user to see a pop-up window to have them contact
their admin for the lastest version.

Thanks
Brooke

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Splash Screen

Mike,
I pasted this code in the userform and now no pop-up comes up. Does it have
to be a past date to work? Actually I put 3/24/08 and nothing appeared when
I opened the spreadsheet.

Could it be I'm pasted in the wrong place?? Does it go under thisworkbook??
Thanks in Advance

"Mike H" wrote:

Hi,

Maybe this.
Right click the userform and view the code and paste this in

Private Sub UserForm_Activate()
MyDate = #3/25/2008#
If Date = MyDate Then
MsgBox "The userform is out of date"
Unload Me
End If
End Sub

"Brooke" wrote:

Can someone tell me how to get a splash screen to come up only after a
certain date?? I know how to put the code in a userform, but have no idea to
only have it pop-up after an expiration date. I have a form that expires
each quarter and I want the user to see a pop-up window to have them contact
their admin for the lastest version.

Thanks
Brooke

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Splash Screen

Brooke,

If you want a popup when the workbook opens then you need something
different so try this, Alt +F11 to open VB editor, double click 'This
workbook' and paste this in there.

Private Sub Workbook_Open()
MyDate = #3/25/2008#
If Date = MyDate Then
MsgBox "The userform is out of date"
ThisWorkbook.Close savechanges:=False
End If
End Sub

The other code is for the userform and works iwhen you activate that


Mike

"Brooke" wrote:

Mike,
I pasted this code in the userform and now no pop-up comes up. Does it have
to be a past date to work? Actually I put 3/24/08 and nothing appeared when
I opened the spreadsheet.

Could it be I'm pasted in the wrong place?? Does it go under thisworkbook??
Thanks in Advance

"Mike H" wrote:

Hi,

Maybe this.
Right click the userform and view the code and paste this in

Private Sub UserForm_Activate()
MyDate = #3/25/2008#
If Date = MyDate Then
MsgBox "The userform is out of date"
Unload Me
End If
End Sub

"Brooke" wrote:

Can someone tell me how to get a splash screen to come up only after a
certain date?? I know how to put the code in a userform, but have no idea to
only have it pop-up after an expiration date. I have a form that expires
each quarter and I want the user to see a pop-up window to have them contact
their admin for the lastest version.

Thanks
Brooke

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Splash Screen

I'm understanding now. It worked perfectly. Any way to change the window
size, color, etc. ???

Thanks again for the quick help.

"Mike H" wrote:

Brooke,

If you want a popup when the workbook opens then you need something
different so try this, Alt +F11 to open VB editor, double click 'This
workbook' and paste this in there.

Private Sub Workbook_Open()
MyDate = #3/25/2008#
If Date = MyDate Then
MsgBox "The userform is out of date"
ThisWorkbook.Close savechanges:=False
End If
End Sub

The other code is for the userform and works iwhen you activate that


Mike

"Brooke" wrote:

Mike,
I pasted this code in the userform and now no pop-up comes up. Does it have
to be a past date to work? Actually I put 3/24/08 and nothing appeared when
I opened the spreadsheet.

Could it be I'm pasted in the wrong place?? Does it go under thisworkbook??
Thanks in Advance

"Mike H" wrote:

Hi,

Maybe this.
Right click the userform and view the code and paste this in

Private Sub UserForm_Activate()
MyDate = #3/25/2008#
If Date = MyDate Then
MsgBox "The userform is out of date"
Unload Me
End If
End Sub

"Brooke" wrote:

Can someone tell me how to get a splash screen to come up only after a
certain date?? I know how to put the code in a userform, but have no idea to
only have it pop-up after an expiration date. I have a form that expires
each quarter and I want the user to see a pop-up window to have them contact
their admin for the lastest version.

Thanks
Brooke



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default Splash Screen

Mike-
I'm really new at this so I apologize up front. Where to view the code and
userforms will have to be walked through. :)

"Mike H" wrote:

Hi,

Maybe this.
Right click the userform and view the code and paste this in

Private Sub UserForm_Activate()
MyDate = #3/25/2008#
If Date = MyDate Then
MsgBox "The userform is out of date"
Unload Me
End If
End Sub

"Brooke" wrote:

Can someone tell me how to get a splash screen to come up only after a
certain date?? I know how to put the code in a userform, but have no idea to
only have it pop-up after an expiration date. I have a form that expires
each quarter and I want the user to see a pop-up window to have them contact
their admin for the lastest version.

Thanks
Brooke

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
splash screen K11ngy Excel Discussion (Misc queries) 3 July 9th 07 12:19 PM
splash screen Dave F Excel Discussion (Misc queries) 2 March 16th 07 05:00 PM
Relocating Splash Screen tx12345 Excel Discussion (Misc queries) 1 August 22nd 06 11:49 PM
make a splash screen appear first Mark Stephens Charts and Charting in Excel 1 August 15th 06 01:01 AM
Splash Screen Startup Toxie Excel Discussion (Misc queries) 1 February 26th 06 05:11 AM


All times are GMT +1. The time now is 05:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"