ChristopherB111
New Member
- Joined
- May 12, 2018
- Messages
- 2
Assistance needed to break this Code down to a smaller version as I am getting a Compile Error - Procedure too large.
Current Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$BA$4" Then
Shapes("A 1").Width = Target.Value * Range("BA157")
End If
If Target.Address = "$BB$4" Then
Shapes("A 1").Height = Target.Value * Range("BA159")
End If
If Target.Address = "$BA$5" Then
Shapes("A 2").Width = Target.Value * Range("BA157")
End If
If Target.Address = "$BB$5" Then Shapes("A 2").Height = Target.Value * Range("BA159")
End If
If Targ.........
Its for 150 Shapes (staring from "A 1"):
Column Range from BA4 to BA153 * Cell BA157 will give Width value for each Shape
And
Column Range from BB4 to BB153 * Cell BA159 will give Height value for each Shape.
Thanks,
Chris.
Current Code:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$BA$4" Then
Shapes("A 1").Width = Target.Value * Range("BA157")
End If
If Target.Address = "$BB$4" Then
Shapes("A 1").Height = Target.Value * Range("BA159")
End If
If Target.Address = "$BA$5" Then
Shapes("A 2").Width = Target.Value * Range("BA157")
End If
If Target.Address = "$BB$5" Then Shapes("A 2").Height = Target.Value * Range("BA159")
End If
If Targ.........
Its for 150 Shapes (staring from "A 1"):
Column Range from BA4 to BA153 * Cell BA157 will give Width value for each Shape
And
Column Range from BB4 to BB153 * Cell BA159 will give Height value for each Shape.
Thanks,
Chris.