francois.lemarie
Board Regular
- Joined
- Mar 24, 2010
- Messages
- 54
Hello,
I am working with the following file :
http://depositfiles.com/es/files/qx3unewrn
I have a combolist (ListBox but not in a form, in Activex) with various choices. I want a worksheet to be shown only if I choose "Closed - won". It must be hidden otherwise.
I trew a code but the worksheet is hidden all the time.
What's wrong ? Anyone could be so kind to give me the good code ?
Private Sub ComboStatusopp_Change()
If ComboStatusopp.Value = Closed - won Then
Worksheets("CloseInfo").Visible = True
Else
Worksheets("CloseInfo").Visible = False
End If
End Sub
Thanks a lot
I am working with the following file :
http://depositfiles.com/es/files/qx3unewrn
I have a combolist (ListBox but not in a form, in Activex) with various choices. I want a worksheet to be shown only if I choose "Closed - won". It must be hidden otherwise.
I trew a code but the worksheet is hidden all the time.
What's wrong ? Anyone could be so kind to give me the good code ?
Private Sub ComboStatusopp_Change()
If ComboStatusopp.Value = Closed - won Then
Worksheets("CloseInfo").Visible = True
Else
Worksheets("CloseInfo").Visible = False
End If
End Sub
Thanks a lot