How to ensure a non empty string value is entered in InputBox. The control should not go to next statement until this value is entered.
fileName=InputBox("Enter File Name", "File Name")
How to ensure a non empty string value is entered in InputBox. The control should not go to next statement until this value is entered.
fileName=InputBox("Enter File Name", "File Name")
InputBoxreturns the string the user has entered when "OK" is pressed, and an "empty" value when "Cancel" is pressed.Giving the user an option to cancel the program is necessary, so you need to check for that.