# Duplicate and rename sheets continuously

**URL:** <https://forum.dynamobim.com/t/duplicate-and-rename-sheets-continuously/90320>\
**Category:** Uncategorized\
**Created:** [June 2, 2023, 1:18pm UTC](https://forum.dynamobim.com/t/duplicate-and-rename-sheets-continuously/90320 "2023-06-02T13:18:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![1bitBoolean](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/1bitboolean/32/165603_2.png) [@1bitBoolean](https://forum.dynamobim.com/u/1bitBoolean)\
**Post date:** [June 2, 2023, 1:18pm UTC](https://forum.dynamobim.com/t/duplicate-and-rename-sheets-continuously/90320/1 "2023-06-02T13:18:54Z")

</div>

Hello, I got a project structure that names sheets like this:  
PM-F1-03-001  
PM-F1-03-002  
PM-F1-03-003  
PM-F1-04-001  
PM-F1-04-002  
PM-F1-04-003

I have a script that can duplicate all sheets of 04 once and rename them to PM-F1-05-001.

How do I make a script that creates and renames these sheet groups repeatedly creating 03-09. All copied from sheet group 03  
My current script looks like this:

 ![scripts](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/b/1b5c9771e6d0bc7931fb3265aee6346720da69dc.png)

EDIT: Apologies - the sheet input is actually connected to the end of the “Dupe logic” group

---

<div class="post-metadata">

**Author:** ![staylor](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/staylor/32/94307_2.png) [@staylor](https://forum.dynamobim.com/u/staylor)\
**Post date:** [June 2, 2023, 2:38pm UTC](https://forum.dynamobim.com/t/duplicate-and-rename-sheets-continuously/90320/2 "2023-06-02T14:38:14Z")

</div>

Not sure if this is what you are wanting to do, but may give you some direction. Someone else may be able to help simplify the process.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/3/1385f8ed5253492e3f3c57f27f9500d75601c29c.png)  
End Result  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/2/e23c2cb7e68e2f1fb85ff8244741297f1a1e99be.png)

[Duplicate Sheets.dyn](https://forum.dynamobim.com/uploads/short-url/xxdJKrfHFpYckNfDlYuoPpSSi0M.dyn) (70.2 KB)
