Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default In an Excel formula can the clock be used to measure time?

I am developing an Excel model that tests the participant's memory.
Commencing the program makes a sheet visible. I want to use a
"Worksheet_Change macro to hide the sheet after a specified period of time
(between 30 & 90 seconds). Can the computer's clock be associated with a
formula so that I can cause a value in a cell to change at the conclusion of
a selected period? I am using Windows XP Home with Office 07.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default In an Excel formula can the clock be used to measure time?

this should hide the sheet after 2 seconds after A1 is changed


Private Sub Worksheet_Change(ByVal Target As Range)
Const WSrange As String = "A1"
Dim i As Long
If Not Intersect(Target, Me.Range(WSrange)) Is Nothing Then
Application.Wait (Now + TimeValue("0:00:02"))
ActiveSheet.Visible = xlHidden
End If

End Sub

--


Gary


"Charlie Betz" wrote in message
...
I am developing an Excel model that tests the participant's memory.
Commencing the program makes a sheet visible. I want to use a
"Worksheet_Change macro to hide the sheet after a specified period of time
(between 30 & 90 seconds). Can the computer's clock be associated with a
formula so that I can cause a value in a cell to change at the conclusion of
a selected period? I am using Windows XP Home with Office 07.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default In an Excel formula can the clock be used to measure time?

don't need the dim statement, put it there by mistake


Private Sub Worksheet_Change(ByVal Target As Range)
Const WSrange As String = "A1"
If Not Intersect(Target, Me.Range(WSrange)) Is Nothing Then
Application.Wait (Now + TimeValue("0:00:02"))
ActiveSheet.Visible = xlHidden
End If

End Sub

--


Gary


"Charlie Betz" wrote in message
...
I am developing an Excel model that tests the participant's memory.
Commencing the program makes a sheet visible. I want to use a
"Worksheet_Change macro to hide the sheet after a specified period of time
(between 30 & 90 seconds). Can the computer's clock be associated with a
formula so that I can cause a value in a cell to change at the conclusion of
a selected period? I am using Windows XP Home with Office 07.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default In an Excel formula can the clock be used to measure time?

This may assist:
http://www.mrexcel.com/archive/VBA/7422a.html

Corey....



"Charlie Betz" wrote in message
...
I am developing an Excel model that tests the participant's memory.
Commencing the program makes a sheet visible. I want to use a
"Worksheet_Change macro to hide the sheet after a specified period of time
(between 30 & 90 seconds). Can the computer's clock be associated with a
formula so that I can cause a value in a cell to change at the conclusion
of
a selected period? I am using Windows XP Home with Office 07.



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
24 hour clock formula for elapsed time between 1215 and 1630 Tader Excel Worksheet Functions 1 April 6th 09 05:23 PM
Incremental time values based upon clock in and clock out times saltnsnails Excel Discussion (Misc queries) 8 January 13th 09 08:11 PM
Time Clock - Making sure they clock out valiant Excel Programming 1 June 4th 08 03:22 PM
How do I calculate time in excel (clock in and clock out chad Excel Discussion (Misc queries) 3 January 7th 08 10:09 PM
Change EXCEL Clock to Standard Clock or Military Time YoMarie Excel Worksheet Functions 4 April 29th 07 08:39 PM


All times are GMT +1. The time now is 01:18 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"