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 Rename workshee...
Power Automate
Answered

How to Rename worksheet name

(0) ShareShare
ReportReport
Posted on by 2

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.

Categories:
  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    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

  • Priyanka03 Profile Picture
    2 on at

    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. 

  • Verified answer
    Priyanka03 Profile Picture
    2 on at

    @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

  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

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

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

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard