duplicate sheet and increase the serial number in each sheet.

yossisho

New Member
Joined
Aug 23, 2024
Messages
2
Office Version
  1. 365
  2. 2016
  3. 2013
Platform
  1. Windows
  2. Mobile
I have a lab form in Excel.
In this form, there's a unique serial number.
I need to duplicate this sheet 110 times with continuous serial numbers. (I need to increase the serial number by 1 on each sheet.)

Thanks for your help.
Yossi

EDIT:
it should be in VBA
 

Attachments

  • 2024-08-23.png
    2024-08-23.png
    36.7 KB · Views: 11
Last edited by a moderator:

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Change the sheet name (in red) to suit your needs,
Rich (BB code):
Sub CreateSheets()
    Application.ScreenUpdating = False
    Dim x As Long
    For x = 1 To 110
        Sheets("Lab Form").Copy after:=Sheets(Sheets.Count)
        Range("B8") = Range("B8") + x
    Next x
    Application.ScreenUpdating = True
End Sub
 
Upvote 0
Thanks for your prompt attention to this matter. 🙏🙏🙏
the script multiples the sheets but the serial number stays without change.
 
Upvote 0
Make sure the cell address (in red) matches the cell address containing the serial number. In your original post. it appeared to be in cell B8.
Rich (BB code):
 Range("B8") = Range("B8") + x
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,173
Members
451,543
Latest member
cesymcox

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top