Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
How can I enter todays date with a macro, without the date updating tomorrow?
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way:
Public Sub InsertDate() With ActiveCell .Value = Date .NumberFormat = "dd mmm yyyy" End With End Sub However, simply typing CTRL-; may work for you without a macro. In article , in_trouble wrote: How can I enter todays date with a macro, without the date updating tomorrow? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
See if this will do it...i'm no expert though
Sub datemacro() With ActiveCell .FormulaR1C1 = "=TODAY()" .Copy .PasteSpecial Paste:=xlPasteValues End With Application.CutCopyMode = False End Sub "in_trouble" wrote: How can I enter todays date with a macro, without the date updating tomorrow? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2 different ?'s: Date? Macro? | Excel Worksheet Functions | |||
Date Formatting in a Macro | Excel Discussion (Misc queries) | |||
Insert date in macro | New Users to Excel | |||
Date/Time Macro | Excel Discussion (Misc queries) | |||
Date macro | Excel Discussion (Misc queries) |