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 / Power Automate using E...
Power Automate
Unanswered

Power Automate using Excel Actions

(2) ShareShare
ReportReport
Posted on by 10

I have created a merged worksheet from four similar worksheets  and I need to convert the combined worksheet to Table Format.

 

How can I do that using the excel actions?

Thank you

 

 

I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at

    Hi @PJBrown 

     

    Currently there is no actions to convert the excel sheet to table ( I hope it should be in future updates)

     

    So current workaround would be to use macro/vbscript or using ui automation [ for UI Automation select all cells and then use send keys to pass ctrl+t where data like range values are passed.

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • PJBrown Profile Picture
    10 on at

    Strange that Power Automate requires an Excel file to be formatted as a table, but Excel actions does not support conversion to table format. 

     

    Thank you for your reply.

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    It's only the cloud flows that require it formatted as a table. And that is because it uses GraphAPI to interact with Excel, and it currently only supports tables. Power Automate Desktop flows do not require tables, as it uses a different approach to interacting with Excel (due to the fact it runs on the desktop).

     

    But it can be done quite easily by using VBScript/PowerShell. Here's a sample script that you can use in a Run VBScript action:

    Const xlYes = 1
    Const xlSrcRange = 1
    Dim Workbook,Worksheet
    
    'Launch the Excel app
    Set Excel = CreateObject("Excel.Application")
    
    'Open the workbook
    Set Workbook = Excel.Workbooks.open("%FilePath%")
    
    Activate a specific worksheet
    Set Worksheet = Workbook.worksheets(1) 'Set a different index here, or use a name of the sheet
    
    'create a new listobject from the Range with top-left=A1
    Worksheet.ListObjects.Add xlSrcRange, Worksheet.Range("A1").CurrentRegion, , xlYes
    
    'Save and Close Excel
    Excel.DisplayAlerts = False 'don't show "a file already exists..."
    Workbook.Save
    Workbook.Close
    Excel.Quit

    Note: you need to set %FilePath% to the path to the actual Excel document path via Set variable before the Run VBScript action.

     

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • takolota1 Profile Picture
    4,980 Moderator on at
    You can also use this template Azure Function to pull data from any Excel sheet without the need for table formatting...
    https://community.powerplatform.com/galleries/gallery-posts/?postid=eea06380-8483-ef11-ac21-7c1e5201b42f

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard