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 / Duplicating sheet1 and...
Power Automate
Answered

Duplicating sheet1 and then rename it according to current date

(0) ShareShare
ReportReport
Posted on by 25

i want to duplicate sheet1 and then name it according to current date. so when ever i run a flow it automatically duplicate sheet1 and rename it according to current date, as shown in the figure

sksk_0-1697523576824.png

 

  • Verified answer
    Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @sksk 

     

    Try as below

     

    Srini84_0-1697526093784.png

     

    Copy paste the below steps to your PAD and change the path of the file

     

     

     

    DateTime.GetCurrentDateTime.Local DateTimeFormat: DateTime.DateTimeFormat.DateOnly CurrentDateTime=> CurrentDateTime
    Excel.LaunchExcel.LaunchAndOpenUnderExistingProcess Path: $'''C:\\Users\\Srini\\OneDrive - 3s6yhv\\Documents\\Assessment_Renwals.xlsx''' Visible: True ReadOnly: False Instance=> ExcelInstance
    Excel.SetActiveWorksheet.ActivateWorksheetByName Instance: ExcelInstance Name: $'''Sheet1'''
    Excel.CopyCellsFromExcel.CopyAllCells Instance: ExcelInstance
    SET SheetName TO $'''%CurrentDateTime.Day%-%CurrentDateTime.Month%'''
    Excel.AddWorksheet Instance: ExcelInstance Name: SheetName WorksheetPosition: Excel.WorksheetPosition.Last
    Excel.PasteCellsToExcel.PasteAt Instance: ExcelInstance Column: 1 Row: 1
    Excel.CloseExcel.CloseAndSave Instance: ExcelInstance
    

     

    If you find this reply helpful, please consider giving it a LIKE AND

    If this reply answers your question or solves your issue, please ACCEPT AS SOLUTION

     

    Thanks,

    Srini

  • sksk Profile Picture
    25 on at

    Everything is working perfect just facing 1 issue which i have attached it 

    sksk_0-1697528652529.png

    it is due to time showing,

  • sksk Profile Picture
    25 on at

    Everything running perfect only 1 error i am receiving it is because of giving time also. 

    sksk_0-1697528866100.png

     

  • Verified answer
    Srini007 Profile Picture
    3,490 Super User 2026 Season 1 on at

    Hi @sksk 

     

    Yeah, that because you are taking entire DateTime to write into the Sheet which is not allowed

    That's why I Placed a Set variable action as SheetName and in that I take only the Date-Month

     

    Regards,

    Srini

     

     

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 229 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 223 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 136 Super User 2026 Season 2

Last 30 days Overall leaderboard