Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Creating running clocks in multiple cells.

I am looking for a way to use cells in a spreadsheet as live clocks. I want
to be able to show the live times in multiple cities using the cells in a
spreatsheet. Anyone know if this is possible?
--
MikeG
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Creating running clocks in multiple cells.

Why not download Microsoft Time Zone? It is a simple taskbar app, handles 5
cities, small footprint, and no work.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"MikeG" wrote in message
...
I am looking for a way to use cells in a spreadsheet as live clocks. I want
to be able to show the live times in multiple cities using the cells in a
spreatsheet. Anyone know if this is possible?
--
MikeG



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Creating running clocks in multiple cells.

There are two basic approaches:

1. local reference
2. GMT reference

1. if your computer is, say, in Princeton NJ then
=NOW() will give you the local time
=NOW()-3 will give you time time in San Francisco

You can refresh the times with F9 at your desired frequency

REMEMBER: You wil have to make adjustments to some of the formulas to
accomodate local DST conventions


2. enter GMT (Zulu) (UTC) in a cell and create offsets from this time. This
has the advantage that the spreadsheet will work where every you are. You
will still have to make periodic adjustments to the formulas to accomodate
local DST.

Once again you can refresh the times with F9 or with a macro.
--
Gary''s Student - gsnu200764


"MikeG" wrote:

I am looking for a way to use cells in a spreadsheet as live clocks. I want
to be able to show the live times in multiple cities using the cells in a
spreatsheet. Anyone know if this is possible?
--
MikeG

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Creating running clocks in multiple cells.

This is what I was looking for, how would I set up a macro to refresh?
--
MikeG


"Gary''s Student" wrote:

There are two basic approaches:

1. local reference
2. GMT reference

1. if your computer is, say, in Princeton NJ then
=NOW() will give you the local time
=NOW()-3 will give you time time in San Francisco

You can refresh the times with F9 at your desired frequency

REMEMBER: You wil have to make adjustments to some of the formulas to
accomodate local DST conventions


2. enter GMT (Zulu) (UTC) in a cell and create offsets from this time. This
has the advantage that the spreadsheet will work where every you are. You
will still have to make periodic adjustments to the formulas to accomodate
local DST.

Once again you can refresh the times with F9 or with a macro.
--
Gary''s Student - gsnu200764


"MikeG" wrote:

I am looking for a way to use cells in a spreadsheet as live clocks. I want
to be able to show the live times in multiple cities using the cells in a
spreatsheet. Anyone know if this is possible?
--
MikeG

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Creating running clocks in multiple cells.

This is adapted from Pearson's page:

http://www.cpearson.com/excel/OnTime.aspx

Here is the code:

Public RunWhen As Double
Public Const cRunIntervalSeconds = 2 ' two seconds
Public Const cRunWhat = "refresh" ' the name of the procedure to run
Sub refresh()
Application.CalculateFull
StartTimer
End Sub
Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=True
End Sub
Sub StopTimer()
On Error Resume Next
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=False
End Sub

To install from Excel and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select StartTimer
3. Touch Run

The clocks will begin to update

To remove the macro:

1. run StopTimer as above
2. bring up the VBE window as above
3. clear the code out
4. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm





--
Gary''s Student - gsnu200764


"MikeG" wrote:

This is what I was looking for, how would I set up a macro to refresh?
--
MikeG


"Gary''s Student" wrote:

There are two basic approaches:

1. local reference
2. GMT reference

1. if your computer is, say, in Princeton NJ then
=NOW() will give you the local time
=NOW()-3 will give you time time in San Francisco

You can refresh the times with F9 at your desired frequency

REMEMBER: You wil have to make adjustments to some of the formulas to
accomodate local DST conventions


2. enter GMT (Zulu) (UTC) in a cell and create offsets from this time. This
has the advantage that the spreadsheet will work where every you are. You
will still have to make periodic adjustments to the formulas to accomodate
local DST.

Once again you can refresh the times with F9 or with a macro.
--
Gary''s Student - gsnu200764


"MikeG" wrote:

I am looking for a way to use cells in a spreadsheet as live clocks. I want
to be able to show the live times in multiple cities using the cells in a
spreatsheet. Anyone know if this is possible?
--
MikeG



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Creating running clocks in multiple cells.

Okay when I set up =NOW() in a cell everthing works as advertised. I get a
date and current time, but when I try to set up another time zone Like San
Fran =NOW()-3 excel changes the date not the time.
--
MikeG


"Gary''s Student" wrote:

This is adapted from Pearson's page:

http://www.cpearson.com/excel/OnTime.aspx

Here is the code:

Public RunWhen As Double
Public Const cRunIntervalSeconds = 2 ' two seconds
Public Const cRunWhat = "refresh" ' the name of the procedure to run
Sub refresh()
Application.CalculateFull
StartTimer
End Sub
Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=True
End Sub
Sub StopTimer()
On Error Resume Next
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=False
End Sub

To install from Excel and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select StartTimer
3. Touch Run

The clocks will begin to update

To remove the macro:

1. run StopTimer as above
2. bring up the VBE window as above
3. clear the code out
4. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm





--
Gary''s Student - gsnu200764


"MikeG" wrote:

This is what I was looking for, how would I set up a macro to refresh?
--
MikeG


"Gary''s Student" wrote:

There are two basic approaches:

1. local reference
2. GMT reference

1. if your computer is, say, in Princeton NJ then
=NOW() will give you the local time
=NOW()-3 will give you time time in San Francisco

You can refresh the times with F9 at your desired frequency

REMEMBER: You wil have to make adjustments to some of the formulas to
accomodate local DST conventions


2. enter GMT (Zulu) (UTC) in a cell and create offsets from this time. This
has the advantage that the spreadsheet will work where every you are. You
will still have to make periodic adjustments to the formulas to accomodate
local DST.

Once again you can refresh the times with F9 or with a macro.
--
Gary''s Student - gsnu200764


"MikeG" wrote:

I am looking for a way to use cells in a spreadsheet as live clocks. I want
to be able to show the live times in multiple cities using the cells in a
spreatsheet. Anyone know if this is possible?
--
MikeG

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Creating running clocks in multiple cells.

=NOW()-3/24

Vaya con Dios,
Chuck, CABGx3



"MikeG" wrote:

Okay when I set up =NOW() in a cell everthing works as advertised. I get a
date and current time, but when I try to set up another time zone Like San
Fran =NOW()-3 excel changes the date not the time.
--
MikeG


"Gary''s Student" wrote:

This is adapted from Pearson's page:

http://www.cpearson.com/excel/OnTime.aspx

Here is the code:

Public RunWhen As Double
Public Const cRunIntervalSeconds = 2 ' two seconds
Public Const cRunWhat = "refresh" ' the name of the procedure to run
Sub refresh()
Application.CalculateFull
StartTimer
End Sub
Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=True
End Sub
Sub StopTimer()
On Error Resume Next
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=False
End Sub

To install from Excel and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select StartTimer
3. Touch Run

The clocks will begin to update

To remove the macro:

1. run StopTimer as above
2. bring up the VBE window as above
3. clear the code out
4. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm





--
Gary''s Student - gsnu200764


"MikeG" wrote:

This is what I was looking for, how would I set up a macro to refresh?
--
MikeG


"Gary''s Student" wrote:

There are two basic approaches:

1. local reference
2. GMT reference

1. if your computer is, say, in Princeton NJ then
=NOW() will give you the local time
=NOW()-3 will give you time time in San Francisco

You can refresh the times with F9 at your desired frequency

REMEMBER: You wil have to make adjustments to some of the formulas to
accomodate local DST conventions


2. enter GMT (Zulu) (UTC) in a cell and create offsets from this time. This
has the advantage that the spreadsheet will work where every you are. You
will still have to make periodic adjustments to the formulas to accomodate
local DST.

Once again you can refresh the times with F9 or with a macro.
--
Gary''s Student - gsnu200764


"MikeG" wrote:

I am looking for a way to use cells in a spreadsheet as live clocks. I want
to be able to show the live times in multiple cities using the cells in a
spreatsheet. Anyone know if this is possible?
--
MikeG

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Creating running clocks in multiple cells.

Format Cells... Number Custom m/d/yyyy h:mm:ss

Will display like:
1/9/2008 10:33:16

--
Gary''s Student - gsnu200764
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default Creating running clocks in multiple cells.

That fixed the time problem but I can't get the code to work for the
spreadsheet to auto refresh. I copied and pasted as written. Getting constant
errors and syntax errors.
--
MikeG


"CLR" wrote:

=NOW()-3/24

Vaya con Dios,
Chuck, CABGx3



"MikeG" wrote:

Okay when I set up =NOW() in a cell everthing works as advertised. I get a
date and current time, but when I try to set up another time zone Like San
Fran =NOW()-3 excel changes the date not the time.
--
MikeG


"Gary''s Student" wrote:

This is adapted from Pearson's page:

http://www.cpearson.com/excel/OnTime.aspx

Here is the code:

Public RunWhen As Double
Public Const cRunIntervalSeconds = 2 ' two seconds
Public Const cRunWhat = "refresh" ' the name of the procedure to run
Sub refresh()
Application.CalculateFull
StartTimer
End Sub
Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=True
End Sub
Sub StopTimer()
On Error Resume Next
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=False
End Sub

To install from Excel and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select StartTimer
3. Touch Run

The clocks will begin to update

To remove the macro:

1. run StopTimer as above
2. bring up the VBE window as above
3. clear the code out
4. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm





--
Gary''s Student - gsnu200764


"MikeG" wrote:

This is what I was looking for, how would I set up a macro to refresh?
--
MikeG


"Gary''s Student" wrote:

There are two basic approaches:

1. local reference
2. GMT reference

1. if your computer is, say, in Princeton NJ then
=NOW() will give you the local time
=NOW()-3 will give you time time in San Francisco

You can refresh the times with F9 at your desired frequency

REMEMBER: You wil have to make adjustments to some of the formulas to
accomodate local DST conventions


2. enter GMT (Zulu) (UTC) in a cell and create offsets from this time. This
has the advantage that the spreadsheet will work where every you are. You
will still have to make periodic adjustments to the formulas to accomodate
local DST.

Once again you can refresh the times with F9 or with a macro.
--
Gary''s Student - gsnu200764


"MikeG" wrote:

I am looking for a way to use cells in a spreadsheet as live clocks. I want
to be able to show the live times in multiple cities using the cells in a
spreatsheet. Anyone know if this is possible?
--
MikeG

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Creating running clocks in multiple cells.

Hi Mike..........
Assuming you fixed any word-wrap problems that have might have gotten
through the copy-paste.......I went in and changed the "refresh" macro to the
following in my Excel 97 and it worked fine.

Sub refresh()
With ActiveWorkbook.ActiveSheet
..Calculate
End With
StartTimer
End Sub

Vaya con Dios,
Chuck, CABGx3


"MikeG" wrote:

That fixed the time problem but I can't get the code to work for the
spreadsheet to auto refresh. I copied and pasted as written. Getting constant
errors and syntax errors.
--
MikeG


"CLR" wrote:

=NOW()-3/24

Vaya con Dios,
Chuck, CABGx3



"MikeG" wrote:

Okay when I set up =NOW() in a cell everthing works as advertised. I get a
date and current time, but when I try to set up another time zone Like San
Fran =NOW()-3 excel changes the date not the time.
--
MikeG


"Gary''s Student" wrote:

This is adapted from Pearson's page:

http://www.cpearson.com/excel/OnTime.aspx

Here is the code:

Public RunWhen As Double
Public Const cRunIntervalSeconds = 2 ' two seconds
Public Const cRunWhat = "refresh" ' the name of the procedure to run
Sub refresh()
Application.CalculateFull
StartTimer
End Sub
Sub StartTimer()
RunWhen = Now + TimeSerial(0, 0, cRunIntervalSeconds)
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=True
End Sub
Sub StopTimer()
On Error Resume Next
Application.OnTime EarliestTime:=RunWhen, Procedu=cRunWhat,
Schedule:=False
End Sub

To install from Excel and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To use the macro from the normal Excel window:

1. ALT-F8
2. Select StartTimer
3. Touch Run

The clocks will begin to update

To remove the macro:

1. run StopTimer as above
2. bring up the VBE window as above
3. clear the code out
4. close the VBE window

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm





--
Gary''s Student - gsnu200764


"MikeG" wrote:

This is what I was looking for, how would I set up a macro to refresh?
--
MikeG


"Gary''s Student" wrote:

There are two basic approaches:

1. local reference
2. GMT reference

1. if your computer is, say, in Princeton NJ then
=NOW() will give you the local time
=NOW()-3 will give you time time in San Francisco

You can refresh the times with F9 at your desired frequency

REMEMBER: You wil have to make adjustments to some of the formulas to
accomodate local DST conventions


2. enter GMT (Zulu) (UTC) in a cell and create offsets from this time. This
has the advantage that the spreadsheet will work where every you are. You
will still have to make periodic adjustments to the formulas to accomodate
local DST.

Once again you can refresh the times with F9 or with a macro.
--
Gary''s Student - gsnu200764


"MikeG" wrote:

I am looking for a way to use cells in a spreadsheet as live clocks. I want
to be able to show the live times in multiple cities using the cells in a
spreatsheet. Anyone know if this is possible?
--
MikeG

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
Creating Multiple Worksheet Sets Containing Linked Cells Al Excel Discussion (Misc queries) 3 July 25th 07 03:36 PM
Creating a series of cells with multiple incrimenting characters markb Excel Worksheet Functions 2 June 30th 07 04:50 AM
Creating a text string by reading content in multiple cells smaruzzi Excel Worksheet Functions 3 February 8th 07 05:12 PM
CREATING MULTIPLE CHECKBOXES IN SINGLE CELLS Pat Excel Discussion (Misc queries) 5 January 26th 07 06:03 PM
Creating a formula to populate information from multiple cells in another workbook Sullycanpara Excel Worksheet Functions 8 June 30th 06 04:17 PM


All times are GMT +1. The time now is 09:28 AM.

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"