Pinaceous
Well-known Member
- Joined
- Jun 11, 2014
- Messages
- 1,124
- Office Version
- 365
- Platform
- Windows
Hi All,
I have a Button Click of which populates a date into cell D3, listed below.
Now my ? is, is there any way I can add to this code:
'If cell D3 is already entered' Then 'Exit Sub' With Msgbox 'Already done!'
I've been trying different variations & can use a little bit of help!
Thanks!
I have a Button Click of which populates a date into cell D3, listed below.
Code:
Sub AddDateStamp()
Application.EnableEvents = False
Sheet1.Range("D3") = Format(Now(), "mm-dd")
Application.EnableEvents = True
End Sub
Now my ? is, is there any way I can add to this code:
'If cell D3 is already entered' Then 'Exit Sub' With Msgbox 'Already done!'
I've been trying different variations & can use a little bit of help!
Thanks!