what does ActiveSheet.UsedRange.Columns.Count - 8 mean in vba?
How does vba know the usedRange?
UsedRange represents not only nonempty cells, but also formatted cells without any value. And that's why you should be very vigilant.