Phoenix333
New Member
- Joined
- Sep 28, 2010
- Messages
- 26
I don't know much (anything, really) about VB, but I'm usually pretty good and finding relevant code online and adjusting it to my needs; but today, my brain is not cooperating. Please help
I have a worksheet and in cell B2, there is a data validation list, allowing the user to select either Yes or No. If the use selects Yes, I'd like an input box to pop up and ask "How many rounds are needed for this project?" at which point, the user can enter a number. That number will then populate Cell C2.
The last code I ended up trying is:
Sub Round()
Dim Rounds As Integer
If Range("B2").Value = "Yes" Then
Rounds = inputbox("How many Rounds are in this project?", Rounds)
Range("C2").Value = Rounds
End If
End Sub
Can anyone help?
Thanks so much!
T-
I have a worksheet and in cell B2, there is a data validation list, allowing the user to select either Yes or No. If the use selects Yes, I'd like an input box to pop up and ask "How many rounds are needed for this project?" at which point, the user can enter a number. That number will then populate Cell C2.
The last code I ended up trying is:
Sub Round()
Dim Rounds As Integer
If Range("B2").Value = "Yes" Then
Rounds = inputbox("How many Rounds are in this project?", Rounds)
Range("C2").Value = Rounds
End If
End Sub
Can anyone help?
Thanks so much!
T-