RawlinsCross
Active Member
- Joined
- Sep 9, 2016
- Messages
- 437
Hi there... just a newbie getting my feet wet with programming in excel. I have a lot of declarations and I'm sure I can be declaring them in a better fashion. Can someone provide a more concise alternative to the following:
Code:
Dim MyChart As Chart
Dim ChartData1 As Range
Dim ChartData2 As Range
Dim ChartData3 As Range
Dim ChartData4 As Range
Dim ChartData5 As Range
Dim ChartData6 As Range
Dim ChartData7 As Range
Dim ChartData8 As Range
Dim ChartData9 As Range
Dim ChartIndex1 As Integer
Dim ChartIndex2 As Integer
Dim ChartIndex3 As Integer
Dim ChartIndex4 As Integer
Dim ChartIndex5 As Integer
Dim ChartIndex6 As Integer
Dim ChartIndex7 As Integer
Dim ChartIndex8 As Integer
Dim ChartIndex9 As Integer
Dim ChartIndex16 As Integer
Dim ChartName1 As String
Dim ChartName2 As String
Dim ChartName3 As String
Dim ChartName4 As String
Dim ChartName5 As String
Dim ChartName6 As String
Dim ChartName7 As String
Dim ChartName8 As String
Dim ChartName9 As String