Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 41
Default Double Click for Time

I am trying to put together a sheet that will have several cells that when
double-clicked on, they will put the current time there. (i.e. this is for
timing events as the happen and say cell B3 corresonds to that event, I want
to double-click on it to record when it happend).
Anyone have some ideas on how to proceed?
Thanks,
BradK
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 139
Default Double Click for Time

Brad:

reference doubleclick event

'''''''''''''''''''''''''''''''''''''''''''''''''' '''''''''
'if youe Sheet name is "Sheet1"
'Paste in the following code to Thisworkbook
Private Sub Workbook_Open()
Worksheets("Sheet1").OnDoubleClick = "activeTime"
End Sub

'Add a VBA module to your project and add this code to it.
Sub activeTime()
ActiveCell = Now()
End Sub
'''''''''''''''''''''''''''''''''''''''''''''''''' '''''

Save and close the workbook
open the workbook again

--
天行健,君*以自強不息
地勢坤,君*以厚德載物

http://www.vba.com.tw/plog/


"Brad K." wrote:

I am trying to put together a sheet that will have several cells that when
double-clicked on, they will put the current time there. (i.e. this is for
timing events as the happen and say cell B3 corresonds to that event, I want
to double-click on it to record when it happend).
Anyone have some ideas on how to proceed?
Thanks,
BradK

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
I would like to open a new instance of Excel each time I double-click on a xls file Mark Excel Discussion (Misc queries) 4 September 1st 05 02:29 PM
I would like to open a new instance of Excel each time I double-click on a xls file Mark Excel Worksheet Functions 4 September 1st 05 02:29 PM
Cell contents with custom time format rounded after double-click HumblePie Excel Discussion (Misc queries) 2 August 6th 05 08:07 PM
Click on graph bar to execute a double-click in a pivot table cell [email protected] Charts and Charting in Excel 4 August 3rd 05 01:37 AM
Mouse Over Graph, Capture Information on Click(Double Click) Dean Hinson[_3_] Excel Programming 1 December 6th 04 04:49 AM


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