From noodnutt@gmail.com@21:1/5 to All on Thu Jan 30 18:48:01 2020
Team
Another issue I thought about which ties into the no Data Filter issue.
Assuming there is no data, and the chart is not created, it then creates a secondary issue regarding the ChartObject(?) assignment.
I tried the following logic to get around it, but as with all things lately, Excel doesn't like it.. lol..
For Each ChartObjects In shChar
If Not ChartObjects.count < 3 Then
With shChar.ChartObjects(3)
.Activate
.Name = myChar
.Left = Range("B38").Left
.Top = Range("B38").Top
End With
Else
With shChar.ChartObjects(2)
.Activate
.Name = myChar
.Left = Range("B20").Left
.Top = Range("B20").Top
End With
End If
Next ChartObjects