emilemil22
New Member
- Joined
- Aug 18, 2019
- Messages
- 27
Hello everyone!
I have to sheets- Sheet1 and Sheet2
In sheet 1 I have ListBox1 with 3 values which correspond to values in cells in sheet 2(A1:A3)
In Sheet 1 I have also two textbox controls textbox1 and textbox 2 allocated on the rows 10 to 15.
I want to do the follwoing
-whenver the selected value corresponds to the value of cell A1 in sheet 2, then the controls textbox1 and textbox2 along with rows 10-15 are hidden.
-whenever the selected value corresponds to the value of cell A2 or cell A3 in sheet 2, then the controls textbox1 and textbox2 along with rows 10-15 are unhidden.
Could you advise on the VBA macro? I am trying to do these for weeks but did not get near to that.
Many thanks for your help!!
I have to sheets- Sheet1 and Sheet2
In sheet 1 I have ListBox1 with 3 values which correspond to values in cells in sheet 2(A1:A3)
In Sheet 1 I have also two textbox controls textbox1 and textbox 2 allocated on the rows 10 to 15.
I want to do the follwoing
-whenver the selected value corresponds to the value of cell A1 in sheet 2, then the controls textbox1 and textbox2 along with rows 10-15 are hidden.
-whenever the selected value corresponds to the value of cell A2 or cell A3 in sheet 2, then the controls textbox1 and textbox2 along with rows 10-15 are unhidden.
Could you advise on the VBA macro? I am trying to do these for weeks but did not get near to that.
Many thanks for your help!!