A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Discussion (Misc queries)
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Splash Screen



 
 
Thread Tools Display Modes
  #1  
Old March 25th 08, 02:43 PM posted to microsoft.public.excel.misc
Brooke
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

Ads
  #2  
Old March 25th 08, 03:05 PM posted to microsoft.public.excel.misc
Mike H
external usenet poster
 
Posts: 11,504
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  
Old March 25th 08, 03:16 PM posted to microsoft.public.excel.misc
Brooke
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  
Old March 25th 08, 03:26 PM posted to microsoft.public.excel.misc
Brooke
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
> >

  #5  
Old March 25th 08, 03:30 PM posted to microsoft.public.excel.misc
Mike H
external usenet poster
 
Posts: 11,504
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
> > >

  #6  
Old March 25th 08, 03:58 PM posted to microsoft.public.excel.misc
Brooke
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
> > > >

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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 06:37 AM.


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