Hi all,,
I am fairly new to VBA, I have been trying to write a code that changes the visibility of a text box based on changes of selection of a dropdown list.
Basically, I want to check if the user chose a specific option from the dropdown list, if he did, I want to make the text box visible, otherwise I would like to keep it hidden.
This is my code, I keep getting an error that says "unable to get the oleobjects property of the worksheet class textbox visibility" when I run the code.
Thank you people in advance,
I am fairly new to VBA, I have been trying to write a code that changes the visibility of a text box based on changes of selection of a dropdown list.
Basically, I want to check if the user chose a specific option from the dropdown list, if he did, I want to make the text box visible, otherwise I would like to keep it hidden.
This is my code, I keep getting an error that says "unable to get the oleobjects property of the worksheet class textbox visibility" when I run the code.
Code:
Sub DropDown2767_Change()
If Sheets("Effective Skin Calcs").Range("I18") = 1 Then
ActiveSheet.OLEObjects("TextBox 3").Visible = True
Else
ActiveSheet.OLEObjects("TextBox 3").Visible = False
End If
End Sub
Thank you people in advance,