Ask the user

  • Thread starter Thread starter keyser_Soze
  • Start date Start date
K

keyser_Soze

I need to get some data from the user. I need a string and a yes/no
answer.

I can use inputbox to get the string. What methods are there to get a
yes/no?

I would really like both an input box for the string and a checkbox on
the same popup. Is that possible?

Thanks
 
You can use a simply MsgBox to ask the user a yes/no question.
E.g.,

Dim Res As Long
Res = MsgBox("Yes or no", vbYesNo)
If Res = vbYes Then
' user click yes
Else
' user click no
End If

See VBA Help for MsgBox for more info.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

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