Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 275
Default display userform at certain time

Hi all,

Can anybody help in showing me how I can have a userform displayed when the
time is equal to 11am ??
Once displayed the user then has two options to chose from,,
YES or NO
if they select NO how do I then redisplay the userform 1hour later, if they
select YES display userform2
i have managed to edit some old code to get part of my question answered.
This code will display my userform if the time is after 11am

Private Sub Workbook_Open()
Dim z As Date, t As Date
z = Sheets("sheet1").Range("E1").Value
t = z - Int(z)
If TimeValue(t) "11:00" Then
frmSweepcheck.Show

Else
Sheets("sheet1").Select
End If

End Sub


but how do I change this so that the userform Sweepcheck is re-displayed at
1200 (ie 1hr later than 11am) if the user selects NO as the option from the
Sweepcheck userform?

thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,344
Default display userform at certain time

Hi,

Look at Application.OnTime

In the VBA help area
--
Thanks,
Shane Devenshire


"Anthony" wrote:

Hi all,

Can anybody help in showing me how I can have a userform displayed when the
time is equal to 11am ??
Once displayed the user then has two options to chose from,,
YES or NO
if they select NO how do I then redisplay the userform 1hour later, if they
select YES display userform2
i have managed to edit some old code to get part of my question answered.
This code will display my userform if the time is after 11am

Private Sub Workbook_Open()
Dim z As Date, t As Date
z = Sheets("sheet1").Range("E1").Value
t = z - Int(z)
If TimeValue(t) "11:00" Then
frmSweepcheck.Show

Else
Sheets("sheet1").Select
End If

End Sub


but how do I change this so that the userform Sweepcheck is re-displayed at
1200 (ie 1hr later than 11am) if the user selects NO as the option from the
Sweepcheck userform?

thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 275
Default display userform at certain time

I'll give that a look,
Thanks

"ShaneDevenshire" wrote:

Hi,

Look at Application.OnTime

In the VBA help area
--
Thanks,
Shane Devenshire


"Anthony" wrote:

Hi all,

Can anybody help in showing me how I can have a userform displayed when the
time is equal to 11am ??
Once displayed the user then has two options to chose from,,
YES or NO
if they select NO how do I then redisplay the userform 1hour later, if they
select YES display userform2
i have managed to edit some old code to get part of my question answered.
This code will display my userform if the time is after 11am

Private Sub Workbook_Open()
Dim z As Date, t As Date
z = Sheets("sheet1").Range("E1").Value
t = z - Int(z)
If TimeValue(t) "11:00" Then
frmSweepcheck.Show

Else
Sheets("sheet1").Select
End If

End Sub


but how do I change this so that the userform Sweepcheck is re-displayed at
1200 (ie 1hr later than 11am) if the user selects NO as the option from the
Sweepcheck userform?

thanks


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
display userform Anthony Excel Discussion (Misc queries) 3 February 27th 07 04:02 PM
display status bar value in excel userform? Al B Excel Discussion (Misc queries) 0 November 15th 06 01:21 PM
Time display grahammal Excel Discussion (Misc queries) 1 May 15th 06 11:40 AM
Long Time Delay To Paste From UserForm To Sheet Minitman Excel Worksheet Functions 7 December 6th 05 12:30 AM
How can I create and display a chart dynamically on a UserForm wi. cc Charts and Charting in Excel 1 February 14th 05 02:44 PM


All times are GMT +1. The time now is 05:12 AM.

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

About Us

"It's about Microsoft Excel"