Excel Question
Thread Starter


Joined: Mar 1999
Aviation Qualifications: AME
Posts: 196
Likes: 0
From: Zurich
Hello Chaps,
I'm running Excel95 and want to know if I can insert todays date into a spreadsheet without typing it in. Ie. using something like the lastUpdated thingy???
Thanks
LP
I'm running Excel95 and want to know if I can insert todays date into a spreadsheet without typing it in. Ie. using something like the lastUpdated thingy???
Thanks
LP
Guest
Posts: n/a
If you just want to enter the date and NOT have it update everytime you open the workbook (as it will if you use +Now() )
just type Control + semicolon ie
hold control key done and press the ; key
If you want the time just hold control and shift and press the same key ie control + colon
Search the excel help for keyboard shortcuts for more
MAx
just type Control + semicolon ie
hold control key done and press the ; key
If you want the time just hold control and shift and press the same key ie control + colon
Search the excel help for keyboard shortcuts for more
MAx
Thread Starter


Joined: Mar 1999
Aviation Qualifications: AME
Posts: 196
Likes: 0
From: Zurich
This is all brilliant.......
BUT
I want to put the date in by using a Button/Macro....
So, I can do that with either =now() or =today() but I dont want it to update every day. just keep the day it was first entered.
Control ; works well but can I do that as a macro?
Thanks
LP
BUT
I want to put the date in by using a Button/Macro....
So, I can do that with either =now() or =today() but I dont want it to update every day. just keep the day it was first entered.
Control ; works well but can I do that as a macro?
Thanks
LP
Guest
Posts: n/a
Ahhh, I see what you want.
All you need to do is make a macro and enter this line
ActiveCell.Value = Format(Now(), "dd/mm/yyyy")
Change the format to what you want or format the particular cell.
If you want the date to go into a specific cell and not the active cell use this
Cells(x, y).Value = Format(Now(), "dd/mm/yyyy")
where x is the row number and y is the column number. You can't use the column letter in this function
Use the forms toolbar to add a button and create/link the associated macro.
MAx
All you need to do is make a macro and enter this line
ActiveCell.Value = Format(Now(), "dd/mm/yyyy")
Change the format to what you want or format the particular cell.
If you want the date to go into a specific cell and not the active cell use this
Cells(x, y).Value = Format(Now(), "dd/mm/yyyy")
where x is the row number and y is the column number. You can't use the column letter in this function
Use the forms toolbar to add a button and create/link the associated macro.
MAx




