Return values from UserForms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I open an input form when the sheet is opened.
How can I get a return value from a UserForm, so I can close the form and
cancel the action if the Cancel Button is pressed, and I return to the
spreadsheet, as opposed to accepting the input, printing it, saving it and
closing it if they press OK.

TIA
 
You don't.

Put a public variable in the general module, and have the cancel button set
the value of that variable so you can check it in your code.
 
Thanks Tom

Tom Ogilvy said:
You don't.

Put a public variable in the general module, and have the cancel button set
the value of that variable so you can check it in your code.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top