how to get the time

E

Eduardo

how do I get the time on a column when a signature or a name is on another
column. For example on column B I need the time, when column A is filled.
please help
 
S

ShaneDevenshire

Hi,

Since you are in the Chart forum, are you talking about charts or
spreadsheet cells?

If spreadsheet cells, you will need to use vba unless you can get the user
to type in the time. The shortcut key for entering the current time in a
cell is Ctrl+: (ctrl color - shifted semi-colon)

VBA:

Private Sub Worksheet_Change(ByVal Target As Range)
Dim isect As Range
Set isect = Intersect(Target, Range("A1:A100"))
If Not isect Is Nothing Then
Target.Offset(0, 1) = Time
End If
End Sub

This needs to be in the Sheet object for the sheet you are applying this to,
such as Sheet1

Press Alt+F11, and double click the appropriate sheet under your workbook
name in the Project window at the top left. Put the code in the code sheet
to the right.
 
E

Eduardo

correct I'm creating a spreadsheet
but I'm looking for a formula that inserts automatically the current time on
column B when I enter a text on column A

is that possible?

thanks for reply!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top