Hi,
This is my first post, hope get this right.
I am newish to VBA and have come up against problem (first of many no doubt). I have searched for an answer on the forums and Google but not finding one that works for me.
I need to put multiple private subs in one work sheet but am unable to run the code, the first part works but not the other bits.
I hope the below makes sense?
Do I need to combine these somehow?
Hopefully this a rookie mistake I have made.
Thanks for looking/helping on this,
Ben
This is my first post, hope get this right.
I am newish to VBA and have come up against problem (first of many no doubt). I have searched for an answer on the forums and Google but not finding one that works for me.
I need to put multiple private subs in one work sheet but am unable to run the code, the first part works but not the other bits.
I hope the below makes sense?
Code:
Private Sub Worksheet_Calculate()
If Range("a5").Value = "a" Then
Me.Shapes("Rectangle: Rounded Corners 1").Visible = True
Else
Me.Shapes("Rectangle: Rounded Corners 1").Visible = False
End If
End Sub
Private Sub Worksheet_Calculate()
If Range("a6").Value = "a" Then
Me.Shapes("Rectangle: Rounded Corners 4").Visible = True
Else
Me.Shapes("Rectangle: Rounded Corners 4").Visible = False
End If
End Sub
Private Sub Worksheet_Calculate()
If Range("a7").Value = "a" Then
Me.Shapes("Rectangle: Rounded Corners 5").Visible = True
Else
Me.Shapes("Rectangle: Rounded Corners 5").Visible = False
End If
End Sub
Do I need to combine these somehow?
Hopefully this a rookie mistake I have made.
Thanks for looking/helping on this,
Ben