SCSabresfan
New Member
- Joined
- Sep 30, 2023
- Messages
- 3
- Office Version
- 2019
- Platform
- Windows
I am trying to change the visibility of several shapes based off of the value in a row of cells.
Here are the details:
I currently have a formula in cells g46, j46, m46, etc that returns either Top, Middle or Bottom based off another cell value. If g46 contains "Top" I want it to leave LineATop visible, but make LineAMiddle and LineABottom invisible. If g46 contains "Middle" I want it to leave LineAMiddle visible, but make LineATop and LineABottom invisible. If g46 contains "-", I want LineATop, LineAMiddle and LineABottom to all be invisible. I have tried a couple of other examples I found, but none of them allowed for multiple shapes to change visibility off one value. Can anyone help this VBA newbie???
Here are the details:
- Shape Names are sequential
- LineATop, LineBTop, LineCTop, etc
- LineABottom, LineBBottom, LineCBottom, etc
- Values to base the shape visibility is in g46, j46, m46, etc
I currently have a formula in cells g46, j46, m46, etc that returns either Top, Middle or Bottom based off another cell value. If g46 contains "Top" I want it to leave LineATop visible, but make LineAMiddle and LineABottom invisible. If g46 contains "Middle" I want it to leave LineAMiddle visible, but make LineATop and LineABottom invisible. If g46 contains "-", I want LineATop, LineAMiddle and LineABottom to all be invisible. I have tried a couple of other examples I found, but none of them allowed for multiple shapes to change visibility off one value. Can anyone help this VBA newbie???