SyntaxFix
Write A Post
Hire A Developer
Questions
You should set a condition loop to check the TextBox1 value.
If TextBox1.value = "" then MsgBox "The file not exist" Exit sub 'exit the macro End If
Hope it help you.