Craig_Moore
Board Regular
- Joined
- Dec 12, 2018
- Messages
- 64
- Office Version
- 2019
- Platform
- Windows
Hi All
i have the code below which is simple enough but is there a way for me to stop the popup box if the cell "O1" already has the date in
Thanks
Craig
i have the code below which is simple enough but is there a way for me to stop the popup box if the cell "O1" already has the date in
Thanks
Craig
VBA Code:
Private Sub Worksheet_Activate()
Dim QtyEntry As String
Dim msg As String
msg = "WHAT IS THE DATE OF PRODUCTION (PRESS CANCEL IF DATE ALREADY IN)"
QtyEntry = InputBox(msg)
ActiveSheet.Range("O1").Value = QtyEntry
End Sub