Novice_excel
New Member
- Joined
- May 17, 2010
- Messages
- 17
Greetings everyone,
Can't say I contribute a whole lot to this community but I sure appreciate the information provided here.
I have some problem using a variable in place of the following code;
For some reason, vb does not recognize the ColorResponse variable. When I do run the code, I get the type mismatch error.
It is dim as string and it will work if the value was hardcoded into ColorResponse (ColorResponse = vbRed) but it will not work if the data came from the input box.
Someone help
Can't say I contribute a whole lot to this community but I sure appreciate the information provided here.
I have some problem using a variable in place of the following code;
Code:
If HighLightResponse = vbYes Then
If ColorResponse = Empty Then
ColorResponse = InputBox(prompt:="Please pick color of highlight (vb+; Blue, Red, Green", _
Title:="Highlight Color")
End If
MsgBox "vb" & ColorResponse
'Rows(RowNum).Font.Color = vbRed
Rows(RowNum).Font.Color = ColorResponse
End If
For some reason, vb does not recognize the ColorResponse variable. When I do run the code, I get the type mismatch error.
It is dim as string and it will work if the value was hardcoded into ColorResponse (ColorResponse = vbRed) but it will not work if the data came from the input box.
Someone help