Good Afternoon!
If I can't find a solution here, the code below is going to need to be duplicated for hundred of images, so I'm hopeful!
I have a combobox named CB_ST_STA. Each time that combo box is clicked, I need the chart and a slicer tied to the selection to be brought to the front. The chart will have the same name as the item in the combobox and the slicer will have that name followed by "_Overall".
The code I currently have is at the bottom, but I was hoping to have something that like this:
Private Sub CB_ST_sta_click()
If.Me.CB_ST_STA=Shapename then
ActiveSheet.Shapes(ShapeName that matches CB_ST.STA).ZOrder msoBringToFront
ActiveSheet.Shapes(ShapeName that matches CB_ST.STA & "_Overall").ZOrder msoBringToFront
Any help is appreciated!
If I can't find a solution here, the code below is going to need to be duplicated for hundred of images, so I'm hopeful!
I have a combobox named CB_ST_STA. Each time that combo box is clicked, I need the chart and a slicer tied to the selection to be brought to the front. The chart will have the same name as the item in the combobox and the slicer will have that name followed by "_Overall".
The code I currently have is at the bottom, but I was hoping to have something that like this:
Private Sub CB_ST_sta_click()
If.Me.CB_ST_STA=Shapename then
ActiveSheet.Shapes(ShapeName that matches CB_ST.STA).ZOrder msoBringToFront
ActiveSheet.Shapes(ShapeName that matches CB_ST.STA & "_Overall").ZOrder msoBringToFront
VBA Code:
Private Sub CB_ST_sta_click()
If Me.CB_ST_STA = "RL.8.1" Then
ActiveSheet.Shapes("RL.8.1").ZOrder msoBringToFront
ActiveSheet.Shapes("RL.8.1_Overall").ZOrder msoBringToFront
Any help is appreciated!