+ Reply to Thread
Results 1 to 15 of 15

Mass duplicating sheets and changing 5 values

  1. #1
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Mass duplicating sheets and changing 5 values

    Hi,

    I would like to duplicate my current worksheet a lot of times. Now with every duplicate, i want to change 5 values by +10 every time a duplicate is made:

    Every time a duplicate is made i want to change EXPORT1 to EXPORT11, EXPORT2 to EXPORT22 and so on...
    EXPORT11 to EXPORT21 and EXPORT22 to 32 and so on....

    Is there any way to do this a fast way? So that my input is 50 sheets (for example) and always have the EXPORT's +10 by every duplicate that is made?

    Example.png

  2. #2
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Mass duplicating sheets and changing 5 values

    Maybe this can help you:
    Please Login or Register  to view this content.
    Cheers
    Erwin
    I started learning VBA because I was lazy ...
    Still developing.... being more lazy...

  3. #3
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Re: Mass duplicating sheets and changing 5 values

    Hi Erwin,

    I think i gave you the wrong information. I would like to mass duplicate my sheets and not my worksheet (XLS file). Also i want to increase 5 values of cells by +10 every time a duplicate is made.

    Could you help me with this? Would help me a lot.

    Thanks

  4. #4
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Mass duplicating sheets and changing 5 values

    So you must be clear in your names, now you are making it more confusing. A workbook has 1 or more worksheets.
    Right now I have made a macro for copying worksheets. What is the name of the workbook that you want to copy?

    Cheers
    Erwin

  5. #5
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Re: Mass duplicating sheets and changing 5 values

    Hi Erwin,

    Yes, my mistake. I'm sorry. I have found a macro for copying sheets. However, now i want to increase the value of 5 cells by +10 every time a duplicate is made. In the first sheet the values are EXPORT1, EXPORT2, EXPORT3, ..4, ..5 and in the second sheet the values must be EXPORT11, EXPORT12, ..13, ..14, ..15 and so on.

    Please Login or Register  to view this content.

  6. #6
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Mass duplicating sheets and changing 5 values

    maybe this is what you want: (I cannot read minds you know)
    Please Login or Register  to view this content.
    Cheers
    Erwin

  7. #7
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Re: Mass duplicating sheets and changing 5 values

    Erwin,

    This is what i meant, Thanks! The only downside is that it overwrites the original sheet and uses it for the last copy. Is this on purpose?

    Before run:

    Attachment 672437


    After run (copy 3 times):
    Attachment 672438


    I would like to keep the original and when my input is 3 copies, the second sheet should be 11-15, third one 21-25 and last one 31-35.

    Sorry if you misunderstood me

  8. #8
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Mass duplicating sheets and changing 5 values

    If you go to the dutch section there you can write into dutch and upload a file with the file manager.
    the attachments that you are tryiing to upload are not visible for me, you must upload them via the attachment manager.
    Cheers
    Erwin

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,282

    Re: Mass duplicating sheets and changing 5 values

    There is no Dutch section - there is a non-English section. However, please do NOT take the conversation there. All you need to do is provide an English translation of your Dutch comments here (Google Translate will be good enough).
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Mass duplicating sheets and changing 5 values

    Hi Coen, that is not on purpose,
    I simply used your code, as you have changed mine.
    I will make shortly a new macro. stay tuned

    Cheers
    Erwin
    @Ali, sorry I did not know this. We will keep the conversation here.

  11. #11
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Mass duplicating sheets and changing 5 values

    I had to add only 1 line:
    Please Login or Register  to view this content.
    Cheers
    Erwin

  12. #12
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Re: Mass duplicating sheets and changing 5 values

    Hi,

    I have no clue why, but it still uses the original sheet as the last one and places it in front of all the sheets.

    Attachment 672643


    And this is what it does:
    Attachment 672644

  13. #13
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Mass duplicating sheets and changing 5 values

    Ha Coen, you must upload the picture-files with the attachment manager (Go advanced) , because for us they are not visible.
    What do you want to happen with the original sheet? I must make copies of the original sheet, or not?
    Cheers
    Erwin

  14. #14
    Registered User
    Join Date
    02-20-2020
    Location
    Amsterdam
    MS-Off Ver
    365
    Posts
    42

    Re: Mass duplicating sheets and changing 5 values

    Erwin,

    Thats weird, because for me they are visible, but okay, haha.

    Please Login or Register  to view this content.

    I got it done with this code

    Thanks a lot for helping

  15. #15
    Valued Forum Contributor Eastw00d's Avatar
    Join Date
    02-29-2020
    Location
    Breda, NL
    MS-Off Ver
    2016, 2019
    Posts
    833

    Re: Mass duplicating sheets and changing 5 values

    Hi Coen, if you make more copies, you might want to change this line and it's subsequents:
    Please Login or Register  to view this content.
    Cheers
    Erwin

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Changing mass data
    By Jane T in forum Excel General
    Replies: 2
    Last Post: 02-02-2017, 01:33 PM
  2. [SOLVED] Changing doc name of .pdf in mass
    By BG1983 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-06-2015, 06:01 PM
  3. Need help in mass formulae changing using VBA
    By Ainabaen in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2013, 11:06 AM
  4. changing links in a spreadsheet en mass
    By oliverm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-26-2011, 05:22 PM
  5. Duplicating Charts with changing values
    By zoltain in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-13-2011, 03:46 PM
  6. Mass changing source data
    By ggzor in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 04-08-2010, 04:11 AM
  7. Changing letter case on mass
    By be-nice-2-me in forum Excel General
    Replies: 6
    Last Post: 05-05-2008, 09:51 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1