Re: Convert NOW() To Static Date & Time
If you're going to use a macro, you might as well use it to do the "work" too - then you don't have to worry about losing formulae:
Code
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$H$5" Then
Select Case Target.Value
Case "X", "x"
Range("C5").Value = Time
Case "Y", "y"
Range("C6").Value = Time
Case "Z", "z"
Range("C7").Value = Time
End Select
End If
End Sub
Display More
Put in worksheet
You could rewrite these lines:
and similar, this would make it only write the time in the respective boxes if they were empty
HTH[hr]*[/hr] Auto Merged Post Until 24 Hrs Passes;[dl]*[/dl]Also, putting
doesn't tie a macro to a keyboard shortcut. This forum has an interesting thread on where that information is stored (started by someone who had tried writing all sorts of interesting comments about keyboard shortcuts, none of which made a keyboard shortcut...