View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
a_ndy2003_uk[_3_] a_ndy2003_uk[_3_] is offline
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