ipbr21054
Well-known Member
- Joined
- Nov 16, 2010
- Messages
- 5,832
- Office Version
- 2007
- Platform
- Windows
Afternoon.
As per title.
When i double click a cell within the range mentioned in my code it should enter todays date.
The code below works fine apart from how the format date is entered.
So today its entered as 3/25/2019 but i would like to to be formatted & entered as 25/03/
Could you advise please.
Thanks
As per title.
When i double click a cell within the range mentioned in my code it should enter todays date.
The code below works fine apart from how the format date is entered.
So today its entered as 3/25/2019 but i would like to to be formatted & entered as 25/03/
Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) If Not Intersect(Target, Range("A5:A28")) Is Nothing Then
Cancel = True
Target.Formula = Date
End If
End Sub
Could you advise please.
Thanks