I have a workbook where I want to:
- Add a formula to specific column (column T)
- Loop through different tabs and add formula from 1.
- Filter all those columns descending.
The code only runs on the first sheet.
Dim N As Long
Dim wsName As String
For N = 1 To ThisWorkbook.Sheets.Count
    wsName = ThisWorkbook.Worksheets(N).Name
    If Len(wsName) = 3 Then
        'command
        Call blank
        Call hide
    Else 'do nothing
    End If
Next N
Sub blank()
    Range("T2").Select
    ActiveCell.FormulaR1C1 = "=IF(RC[-3]<>"""",RC[-2]="""",""FALSE"")"
    Range("T2").Select
    Selection.AutoFill Destination:=Range("T2:T6999")
End Sub
Sub hide()
    Columns("T:T").Select
    Selection.EntireColumn.Hidden = True
End Sub
 
     
    