Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert current date
Hi,
I am trying to do what I suspect is a simple task and probably making a meal out of it. All I want to do is insert the current date into a cell, other than having to type it. I recorded a macro; it has one line in it ActiveCell.FormulaR1C1 = "=TODAY()" unfortunately every time I use the macro the previous dates are set to today's date. Not surprising really when the today() function is used. I want to insert the date and then have it 'fixed'. How can I do this please? Thanks -- Nospam |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert current date
Sub FixDate()
ActiveCell.Value = Date End Sub somethinglikeant Nospam wrote: Hi, I am trying to do what I suspect is a simple task and probably making a meal out of it. All I want to do is insert the current date into a cell, other than having to type it. I recorded a macro; it has one line in it ActiveCell.FormulaR1C1 = "=TODAY()" unfortunately every time I use the macro the previous dates are set to today's date. Not surprising really when the today() function is used. I want to insert the date and then have it 'fixed'. How can I do this please? Thanks -- Nospam |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert current date
Hi Nospam
Ctrl ; insert the date Or with code ActiveCell.Value = Format(Date, "dd-mmm-yyyy") -- Regards Ron de Bruin http://www.rondebruin.nl "Nospam" wrote in message ... Hi, I am trying to do what I suspect is a simple task and probably making a meal out of it. All I want to do is insert the current date into a cell, other than having to type it. I recorded a macro; it has one line in it ActiveCell.FormulaR1C1 = "=TODAY()" unfortunately every time I use the macro the previous dates are set to today's date. Not surprising really when the today() function is used. I want to insert the date and then have it 'fixed'. How can I do this please? Thanks -- Nospam |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert current date
In message , Ron de Bruin
writes Hi Nospam Ctrl ; insert the date Or with code ActiveCell.Value = Format(Date, "dd-mmm-yyyy") Thanks that did the trick -- Nospam |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert current date
Thanks
In message .com, somethinglikeant writes Sub FixDate() ActiveCell.Value = Date End Sub somethinglikeant Nospam wrote: Hi, I am trying to do what I suspect is a simple task and probably making a meal out of it. All I want to do is insert the current date into a cell, other than having to type it. I recorded a macro; it has one line in it ActiveCell.FormulaR1C1 = "=TODAY()" unfortunately every time I use the macro the previous dates are set to today's date. Not surprising really when the today() function is used. I want to insert the date and then have it 'fixed'. How can I do this please? Thanks -- Nospam -- Nospam |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Insert Current Date on a Sheet 1 Tab | Excel Worksheet Functions | |||
Insert Current Date when cell is empty?? | Excel Worksheet Functions | |||
Any quick key to insert current Date and Time? | Excel Discussion (Misc queries) | |||
how do I insert the current time (static) and date in a cell? | Excel Discussion (Misc queries) | |||
How to insert a current date | Excel Discussion (Misc queries) |