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 / Duplicate worksheet an...
Power Automate
Answered

Duplicate worksheet and rename when new email is received

(0) ShareShare
ReportReport
Posted on by 11

Hello,

 

I'm trying to find a way to have an email (with a specific subject line) trigger Excel to duplicate a worksheet and rename it to the subject line of the email.

 

I've been able to set up the email trigger and the creation of a new sheet with the email subject name. I just don't know how to copy the items from my template worksheet into the newly made sheet while maintaining the formatting and row/column heights. Would having Power Automate run a script be easier than trying to automate this?

 

The template that I'm trying to copy is a Gantt Chart that isn't set up as a table. I'm hoping to keep making duplicates of it within the same workbook as the new emails arrive (if possible).

 

Thanks!

Categories:
  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @JAFTB ,

     

    What you may try is to use the "Get file content" action to get the contents of the original file and then create a new file using the output of that action for the File Content field:

     

    BCBuizer_0-1697062748622.png

     

  • efialttes Profile Picture
    14,756 on at

    Hi @JAFTB 
    So you already try to overcome your challenge with Office Scripts, right?
    If not, you will find promising stuff here 
    https://kokoroe.konomi.app/en/docs/office-scripts/worksheet/copy/
    Hope this helps
    ==========

  • JAFTB Profile Picture
    11 on at

    Thank you! This worked for me.

  • JAFTB Profile Picture
    11 on at

    This website is really cool! Thanks for the link. I'm sure it'll help with future script problems.

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
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard