web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to merge 2 or more...
Power Automate
Unanswered

How to merge 2 or more cells in the excel

(0) ShareShare
ReportReport
Posted on by

I am trying to merge the 2 cells in the excell using power automate desktop. can someone tell me which action I need to use.

I have the same question (0)
  • MichaelAnnis Profile Picture
    5,727 Moderator on at

    I would "populate text field" in the UI in the top left:

    MichaelAnnis_0-1662562562048.png

    Send keys for the cell you want (the left cell) and Enter...example:  A5{Enter}

    Send keys for {Shift}({Right}) to simulate Shift + Right Arrow

    MichaelAnnis_1-1662562665239.png

    Send Keys for Merge Cells which is {Alt}()hmc  NOTE:  the excel hotkey menu is slower than PAD, so change the delay from 10 per keystroke to 100

    MichaelAnnis_3-1662562832939.png

     

    Alt hmc gets merge and center, you can replace the c with a or m for different actions like below.

     

    MichaelAnnis_2-1662562756636.png

     

    Best of luck!

     

  • mohamad1996 Profile Picture
    2 on at

    you can select range of cells and send key with shortcut text to send {ALT}{{H}{M}{C}}, or you can record Macro excel and then run it from power automate desktop 

     

    1_P2zSx2Gb2wlBy7UzvulGyA.gifI have wrote blog regarding to merge excel cells take a look here

  • kinuasa Profile Picture
    801 Most Valuable Professional on at

    Hi,
    I suggest that after selecting the cells using the 'Select cells in Excel worksheet' action, run the following script using the 'Run VBScript' action.

     

    GetObject("%WorkbookPath%").Application.CommandBars.ExecuteMso "MergeCells"

     

    Regards,
    kinuasa

     

     

    Sample Flow:

    Excel.SelectCellsFromExcel.SelectCells Instance: ExcelInstance StartColumn: $'''B''' StartRow: 2 EndColumn: $'''D''' EndRow: 4
    Scripting.RunVBScript VBScriptCode: $'''GetObject(\"%WorkbookPath%\").Application.CommandBars.ExecuteMso \"MergeCells\"''' ScriptOutput=> VBScriptOutput

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 177 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard