How to get date and time after double clicking in particular cell.

PrincePrashant

New Member
Joined
Nov 4, 2017
Messages
3
One of my friend prepared some checklist where all the required staff was asked to put processor id in one column and in other the current date and time. When we double click the cell then automatically the processor id and date & time get pop up. I tried from my end but did not get any answer. Processor id means company provided login id which we use to login into citrix and open all required excel, outlook and other applications.
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi,

Try this : column A contain the processor id and column B the date&time

Sub Popup()
For i = 2 To Cells(Rows.Count, "A").End(xlUp).Row


Range("A" & i).ClearComments
Range("B" & i).ClearComments

If Range("A" & i) = "" Then GoTo 1

Range("A" & i).AddComment
Range("A" & i).Comment.Visible = False
Range("A" & i).Comment.Text Text:="" & Range("A" & i).Value & " - " & Range("B" & i).Value
1
Next i
End Sub
 
Upvote 0
If it is okay with you to enter the processor id in D2 then E2 will display the date

E2 =INDEX(B2:B8,MATCH(D2,A2:A8,0))
 
Upvote 0

Forum statistics

Threads
1,224,803
Messages
6,181,055
Members
453,014
Latest member
Chris258

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top