bull sprig
New Member
- Joined
- Aug 18, 2011
- Messages
- 3
New to Excel VB, so don't know the syntax for what I am trying to do. Any help is appreciated! I'm sure this is completely obvious and simple for someone...
What I have is a list in C7:C100. Depending on what is chosen in this column, I want a different value in E7:E1000. I am trying to use a select case for this. Obviously is works for C7 and E7, but how do I get it to work for the remaining cells in the columns? Here is the code I have so far:
Thank you!
What I have is a list in C7:C100. Depending on what is chosen in this column, I want a different value in E7:E1000. I am trying to use a select case for this. Obviously is works for C7 and E7, but how do I get it to work for the remaining cells in the columns? Here is the code I have so far:
Code:
Select Case Range("C7").Text
Case "Text 1:"
Range("E7").Value = 10
Case "Text 2:"
Range("E7").Value = 15
Case "Text 3:"
Range("E7").Value = 20
Case Else
Range("E7").Value = ""
End Select
Thank you!