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

Notifications

Announcements

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,129 Super User 2025 Season 2 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,974 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard