Someone kindly give me this code yesterday so when i double click D11 it buts the day of the week in the cell in this format ddd.
Private Sub WORKSHEET_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Address(0, 0) = "D11:J11" Then
Cancel = True
Target.Value = Format(Date, "ddd")
End If
End Sub
it works perfectly on one workbook but i cant seem to get it to work on multiple.
is there a macro or a way i can change this code so its not double click the cell but a button pressed to fill the current day in.
or can someone explain why it wont work on multiple workbooks?
Again, im not an expert so might need to explain.
Thanks Guys
Private Sub WORKSHEET_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Address(0, 0) = "D11:J11" Then
Cancel = True
Target.Value = Format(Date, "ddd")
End If
End Sub
it works perfectly on one workbook but i cant seem to get it to work on multiple.
is there a macro or a way i can change this code so its not double click the cell but a button pressed to fill the current day in.
or can someone explain why it wont work on multiple workbooks?
Again, im not an expert so might need to explain.
Thanks Guys