I am trying to adjust the arc length in Excel based on the value of a specific cell.
For example, if the % = 100, then the arc should become a circle.
The code I'm using is not working. The Arc length of (Block Arc 1) doesn't change when I change the % value in the cell (A1). Can anyone help please :) ?
Sub AdjustArc(arcShape As Shape, percent As Single)
Dim xAddress As String
On Error Resume Next
If Target.CountLarge = 1 Then
xAddress = Target.Address(0, 0)
If xAddress = "A1" Then
AdjustArc ThisWorkbook.Sheets("Sheet1").Shapes("Block Arc 1"), Val(Target.Value)
End If
End If
End Sub