Hi,
I have the following code that I use and it works fine for a sigle cell, but I want to adapt this so that it will add todays date to a range that I have selected.
The code I think I need to change is in pink, just not sure how to make an equivalent of active range.
Please advise
Matt
Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
With Worksheets(1).Range("C:C")
.Value = .Value
End With
End Sub
Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
ActiveCell = DateValue(Now)
End Sub
I have the following code that I use and it works fine for a sigle cell, but I want to adapt this so that it will add todays date to a range that I have selected.
The code I think I need to change is in pink, just not sure how to make an equivalent of active range.
Please advise
Matt
Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
With Worksheets(1).Range("C:C")
.Value = .Value
End With
End Sub
Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
ActiveCell = DateValue(Now)
End Sub