Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Imbedding an auto-update Clock in excel

-Im trying to imbed a clock in an Excel sheet that will automaticall
update both hours/minutes/seconds. Any ideas???-

- The date was straightforward... -

Thanks,
And

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 292
Default Imbedding an auto-update Clock in excel

Hi Andy

See
http://www.mvps.org/dmcritchie/excel/datetime.htm
far down on the page.

HTH. Best wishes Harald

"a_ndy2003_uk " skrev i
melding ...
-Im trying to imbed a clock in an Excel sheet that will automatically
update both hours/minutes/seconds. Any ideas???-

- The date was straightforward... -

Thanks,
Andy


---
Message posted from http://www.ExcelForum.com/



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,236
Default Imbedding an auto-update Clock in excel

Chip Pearson has a nice Clock example on his downloads page:
http://www.cpearson.com/excel/download.htm

--
Rob van Gelder - http://www.vangelder.co.nz/excel


"a_ndy2003_uk " wrote in
message ...
-Im trying to imbed a clock in an Excel sheet that will automatically
update both hours/minutes/seconds. Any ideas???-

- The date was straightforward... -

Thanks,
Andy


---
Message posted from http://www.ExcelForum.com/



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Imbedding an auto-update Clock in excel

Thanks for the help guys! I took Harald's code, pasted it into a module
then ran:


Public Sub Auto_Open()

Sheets("Control Panel").Select

Application.Run "clock"

End Sub


And it worked!

Thanks agai

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Imbedding an auto-update Clock in excel

Although it is working, when i close the workbook, it automaticall
re-opens the workbook!! very strange!!

Module1:

Public Sub Auto_Open()
Sheets("Control Panel").Select
Application.Run "clock"
End Sub

Module2:

Sub clock()
ActiveWorkbook.Worksheets(1).cells(1, 1).Value = _
Format(Now, "hh:mm:ss")
Application.OnTime (Now + TimeSerial(0, 0, 1)), "clock"
End Sub

I made the Application.Run "clock" code in Module1 a comment and i
stopped so its definately that.

Any ideas

--
Message posted from http://www.ExcelForum.com



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 292
Default Imbedding an auto-update Clock in excel

Any ideas ??! !??
Why do you think the clock macro starts with
If stopit = True Then Exit Sub
and why did you remove it ?

Best wishes Harald

"a_ndy2003_uk " skrev i
melding ...
Although it is working, when i close the workbook, it automatically
re-opens the workbook!! very strange!!


I made the Application.Run "clock" code in Module1 a comment and it
stopped so its definately that.

Any ideas?




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
How do I calculate time in excel (clock in and clock out chad Excel Discussion (Misc queries) 3 January 7th 08 10:09 PM
Imbedding a Word document into Excel ed Excel Discussion (Misc queries) 2 October 1st 07 10:46 PM
Change EXCEL Clock to Standard Clock or Military Time YoMarie Excel Worksheet Functions 4 April 29th 07 08:39 PM
Auto updates - Clock tom300181 Excel Discussion (Misc queries) 0 August 5th 05 11:13 AM
excel links update not working in auto, calculations in auto Mikey Boy Excel Worksheet Functions 0 December 7th 04 11:53 PM


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