I'm using the following code to change the height of rectangles for a chart. This works fine as long as I enter the value and press enter, I've attempting use a formula in $A$1 but it never updates the height of the object... what can i do for this to work ?
Thanks,
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$A$1" Then
Shapes("Rectangle 1").Height = Target.Value * 6.96
End If
If Target.Address = "$A$2" Then
Shapes("Rectangle 2").Height = Target.Value * 6.96
Thanks,