VBA Mantra
- Never use
Find/FindNext- there's always a better way - Dictionary object - Always use
[Option Explicit] - Always fully qualify range [Range/Cells/Sheets/Worksheets/Workbooks], only use
Selectif you are doing UI Dim a, b as integer-aisEmptynotinteger- Always try
Application.Worksheetfunction. ...first - Loop through ranges with
For Each AutoFilterplus `Range.SpecialCells(xlCellTypeVisible) is super helpful- When its too slow
Application.ScreenUpdating=False