I'm new to VBA programming, and I'm having trouble with getting the input box to close when the cancel button is clicked. If anyone has any suggestions, it would be much appreciated.
Thanks,
Garrett
Message = "Input the date which you want to update. The format must be YYYYMMDD."
TitleBarTxt = "Resource Planner"
With Application.FileSearch
Do
uResponse = Application.InputBox(Message, TitleBarTxt)
.LookIn = "Z:\Nav\Departments\"
.Filename = uResponse & "*.xls"
If StrPtr(uResponse) = 0 Then
Exit Sub
End If
Loop Until .Execute > 0
End With
Workbooks.Open "I:\Nolan_Nav\Departments\" & uResponse
Workbooks.Open "I:\Nolan_Nav\Departments\" & uResponse & "Scorecard.xls
Thanks,
Garrett
Message = "Input the date which you want to update. The format must be YYYYMMDD."
TitleBarTxt = "Resource Planner"
With Application.FileSearch
Do
uResponse = Application.InputBox(Message, TitleBarTxt)
.LookIn = "Z:\Nav\Departments\"
.Filename = uResponse & "*.xls"
If StrPtr(uResponse) = 0 Then
Exit Sub
End If
Loop Until .Execute > 0
End With
Workbooks.Open "I:\Nolan_Nav\Departments\" & uResponse
Workbooks.Open "I:\Nolan_Nav\Departments\" & uResponse & "Scorecard.xls