Jmoz092
Board Regular
- Joined
- Sep 8, 2017
- Messages
- 184
- Office Version
- 365
- 2011
- Platform
- Windows
- MacOS
I'm having an issue with an application.inputbox in a macro. It keeps popping up with a "1" in the user input section when the message box initially appears. Why is this happening?
Code:
Dim BeginDate As Variant
ShowInputBox:
BeginDate = Application.InputBox("What is the first day of the next month's workbook that you wish to create?", "Workbook Begin Date mm-dd-yyy", vbOKCancel)
If BeginDate = vbCancel Then
Exit Sub
ElseIf BeginDate = "" Then
MsgBox "No Begin Date Was Entered"
Exit Sub
Else
Sheet49.Range("a2").Value = BeginDate
End If