I'm trying to loop through sheets and perform actions on those tabs that aren't chart tabs. However, in trying tod etermine if a tab is a chart tab or not i'm getting hung up.
The code is bombing on the "If cht = Nothing then" line. I'm not married to this solution so any other ideas/suggestions are appreciated.
The code is bombing on the "If cht = Nothing then" line. I'm not married to this solution so any other ideas/suggestions are appreciated.
Code:
SheetCount = wkb.Sheets.Count
For q = SheetCount To 1 Step -1
Sheets(q + 1).Select
Set cht = ActiveChart
If cht = Nothing Then
Sheets(q).Cells(1, 1).Select
End If
Next q