Merge Cells Over A Range Using For Each Loop

Merge Cells Over A Range Using For Each Loop


Sub Merge_Cells_Over_A_Range()

    ThisWorkbook.Activate

    shtDashboard.Activate

    Dim rng As Range, r As Range

    Set rng = Range("B13:B153")

    For Each r In rng

        r.Resize(1, 3).Merge

    Next r

End Sub


Comments

Popular posts from this blog

Power Automate - Automatically fetch data from Power BI in to Excel and Send the copy of the Excel file via Email

Function to Paste Excel Range on Outlook Mail Body (In text not image) Function Name - rngHTML()

Separate Text (Characters) & Numbers from Alpha Numeric String Using Formula and Macro (VBA)