Excel Macro – toupper code or not toupper

Sub ToUpper()
    
    For Each cell In Selection
        ' Convert all the selected cells to UPPERCASE
        cell.Value = UCase(cell.Value)
    Next

End Sub

in PowerQuery, you no longer need to write a special macro code, just few click, is done, and best thing is that all the steps is recorded, just like recorded macro.