Date and time stamping cells

Excelgreenhand

Board Regular
Joined
Oct 18, 2009
Messages
101
I try to freeze date and time on the Excel cell and I know NOW() would change by the date and hour.
CTRL+; --> to freeze the date
CTRL+SHIFT+; --> to freeze the time

Please tell me how and where I could put the ASCII code on the cells. (Recording macro does not reveal the code)
Thanks.:confused:
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Re: ASCII expert help

I would like to add more that the purpose of my formula is when a sales person enter his name on Column A then Column B will have the date and Column C the time caught.
Thanks.
 
Upvote 0
Re: ASCII expert help

Code:
Sub EGH()
  Range("A1").Value = Time
  Range("A2").Value = Date
  Range("A3").Value = Now
End Sub
 
Upvote 0
Re: ASCII expert help

I try to freeze date and time on the Excel cell and I know NOW() would change by the date and hour.
CTRL+; --> to freeze the date
CTRL+SHIFT+; --> to freeze the time

Please tell me how and where I could put the ASCII code on the cells. (Recording macro does not reveal the code)
Thanks.:confused:

You don't put the ascii code in the cell, you just click on the cell press the keystroke combo and press enter, but that wont happen the way you want without the sort of code that shg showed you
 
Upvote 0
Re: ASCII expert help

The original purpose is to enter a piece of data on Column A then Column B and Column C will have automatically filled with data of "freeze" date and time WITHOUT any input from the user.
Any other ideas to fulfill this requirement !?
Thanks again.
 
Upvote 0
Re: ASCII expert help

If you search the forum for "time stamp," you'll find a hundred examples.
 
Upvote 0
Re: ASCII expert help

The original purpose is to enter a piece of data on Column A then Column B and Column C will have automatically filled with data of "freeze" date and time WITHOUT any input from the user.
Any other ideas to fulfill this requirement !?
Thanks again.

As I pointed out, the only way to do something like this, would be with VBA, such as shg showed you, you cannot do it with formulas
 
Upvote 0
Re: ASCII expert help

Just want to get some new ideas that I might miss from the net.
Over 6 thousands and ten thousands posts it could not be wrong to learn from you guys. I might be back if there is new discovery.
Alright, SALUTE!
 
Upvote 0
Re: ASCII expert help

I'm back to have the following
Sendkeys "^;" --> for CTRL+";" no error on running BUT no date shown on active cell.
Any suggestions !?
Thanks.
 
Upvote 0
Re: ASCII expert help

You do not need Sendkeys. You need code like the code shown by shg, you just need to put it in a worksheet_change event.
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,953
Members
448,535
Latest member
alrossman

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