G Guest Mar 27, 2007 #1 How can I enter today’s date with a macro, without the date updating tomorrow?
J JE McGimpsey Mar 28, 2007 #2 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.
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.
G Guest Mar 28, 2007 #3 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
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