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

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:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard