Hi
I have this VBA code but I would like it to not produce an error message if the TextBox is left blank.
ThanksPlease Login or Register to view this content.
Don
Hi
I have this VBA code but I would like it to not produce an error message if the TextBox is left blank.
ThanksPlease Login or Register to view this content.
Don
Last edited by DonJuan85; 06-28-2015 at 04:29 PM.
Hi Don and Welcome to ExcelForum,
Try the following (changes in red):
Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.Please Login or Register to view this content.
Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.
Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
I answered your question because this is your first post.
Lewis
Last edited by LJMetzger; 06-28-2015 at 05:09 PM. Reason: Added additional red around Else part of ElseIf
Thank you. I was unaware of this or how to do it.
Noted.
Thanks
Don.
Unfortunately I get the error..
Compile error:
Block If End If
Click the * Add Reputation button in the lower left hand corner of this post to say thanks.
Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.
Perfect, thanks.
Also - A bit off topic but do you know how I can create a command button to go to the next tab on a MultiPage user Form? It is the code I am struggling with as I cannot reference the tab for some reason.
Thanks
Thanks Sky. See the additional red in my post above. Sorry for the misunderstanding.
Lewis
That's OK. Do you have an answer for the question above?
Thanks
Don,
Cut and paste the entire macro above. There was an 'Else' that previously not red, that you probably omitted.
Hi
I meant the question about how I can create a command button to go to the next tab on a MultiPage user Form? It is the code I am struggling with as I cannot reference the tab for some reason.
You should probably just start a new thread.Also - A bit off topic but do you know how I can create a command button to go to the next tab on a MultiPage user Form?
Thanks. Already have.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks