I have made a minor change to an Excel macro, and although it worked on the sheet I developed it for, it errors on a similar sheet.
The change simply adds a couple of columns, sorts the data by those columns, and then removes them again.
The only difference between the two sheets is that AutoFilter is turned on in the sheet that errors.
It fails with the error mentioned in the title on the line rng.Parent.Outline.ShowLevels RowLevels:=4