![]() |
| 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. |
|
|||||||
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||
|
|||
|
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 | |
|
|
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 |