PC Review


Reply
Thread Tools Rate Thread

Adding Rows after dropdown menu

 
 
newconcenemp
Guest
Posts: n/a
 
      30th Jul 2009
I am trying to add some subquestions after a Yes or No question. For example:

Does an IT system exist? (yes/no)
If yes, have we discussed a system? (yes/no)
Details

I have the question "Does an IT system exist" with a dropdown yes/no box and
if yes is chosen I want a row containing "If yes, have we discussed a
system?" and another yes/no drop down box to appear and then if yes is chosen
again, one last row with "Details" to appear.

This is just one example of what I need but I think if someone could show me
more or less the basics of how to insert a row with text after an answer is
chosen I could figure the rest out on my own (hopefully!)

Thank you for your help!
 
Reply With Quote
 
 
 
 
ryguy7272
Guest
Posts: n/a
 
      30th Jul 2009
If I were you, I'd use something like this:

YesNo = MsgBox("Has such and such happened?", vbYesNo, "Warning")
Select Case YesNo
Case vbNo
'If answer is Yes, no additional action needs to be taken...
Unload UserForm2
UserForm3.Show
Case vbYes '#1
'Insert your code here if No is clicked
YesNo = MsgBox("Does such and such happen?", vbYesNo, "Warning")
Select Case YesNo
Case vbYes
MsgBox "The User clicked YES!!"

Case vbNo '#2
YesNo = MsgBox("You answered no. Are you sure?", vbYesNo,
"Warning")
Select Case YesNo

Case vbYes
UserForm4.Show
Unload UserForm3

Case vbNo '#3
MsgBox "You answered no. Please start again!!"
Exit Sub

HTH,
Ryan---

--
Ryan---
If this information was helpful, please indicate this by clicking ''Yes''.


"newconcenemp" wrote:

> I am trying to add some subquestions after a Yes or No question. For example:
>
> Does an IT system exist? (yes/no)
> If yes, have we discussed a system? (yes/no)
> Details
>
> I have the question "Does an IT system exist" with a dropdown yes/no box and
> if yes is chosen I want a row containing "If yes, have we discussed a
> system?" and another yes/no drop down box to appear and then if yes is chosen
> again, one last row with "Details" to appear.
>
> This is just one example of what I need but I think if someone could show me
> more or less the basics of how to insert a row with text after an answer is
> chosen I could figure the rest out on my own (hopefully!)
>
> Thank you for your help!

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
select From dropdown and return another dropdown menu RE4379 Microsoft Excel Misc 2 11th Mar 2010 03:09 PM
Adding up dropdown menu categories. JCD Microsoft Excel Misc 1 9th May 2008 04:01 AM
How to show dropdown list of menu items just like click on Parent menu by writing code. Sakharam Phapale Microsoft VB .NET 1 8th Jan 2005 12:39 PM
How to show dropdown list of menu items just like click on Parent menu by writing code Sakharam Phapale Microsoft C# .NET 1 7th Jan 2005 03:47 PM
problem adding button to an EXISTING dropdown menu on a Worksheet Menu Bar Karen P Microsoft Excel Worksheet Functions 3 29th Oct 2003 12:42 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:18 AM.