Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to Rename worksheet name

(0) ShareShare
ReportReport
Posted on by

worksheetname.PNGCapturess.PNG

I'm trying to create table but it says the error message status code 400 invalid arguments. My worksheet name is SLA Breach Output as its space inbetween so i used replace(SLA Breach Output ,' ','') and it is not working. Kindly confirm what went wrong.

  • Verified answer
    Pstork1 Profile Picture
    66,797 Most Valuable Professional on at
    Re: How to Rename worksheet name

    If the worksheet name is in a variable you can replace everything inside the single quotes with the variable and it will work also.

  • Verified answer
    Priyanka03 Profile Picture
    on at
    Re: How to Rename worksheet name

    @Pstork1 ,

     

    I tried like this and it is working fine.

    =OFFSET('SLA Breach Output'!A1,0,0,SUBTOTAL(103,'SLA Breach Output'!$A:$A),3)

    Thank you

  • Priyanka03 Profile Picture
    on at
    Re: How to Rename worksheet name

    I tried the exact format as like you but it still says that Status 400 error: The argument is invalid or missing has incorrect format. 

  • Pstork1 Profile Picture
    66,797 Most Valuable Professional on at
    Re: How to Rename worksheet name

    There is no action available in Power Automate to rename a worksheet. But you can remove the spaces when you use the worksheet name to create the table.  Instead of replacing the spaces with an empty string I would suggest replacing them with an underscore '_'.  However, I think the issue you are having is because of your Table Range setting not the table name. if the Worksheet name has spaces in it all you need to do is surround the variable holding the name with single quotes when specifying the range.  Like this

    image.png

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >