Create Multiple Copies of Master Sheet Automatically @Exceltrainingvideos
Create Multiple Copies of Master Sheet Automatically  @Exceltrainingvideos
Uploaded January 2020 | Updated September 2026, 1 week ago
How to create multiple copies of master sheet automatically based on entry of number of month.
Here's the complete VBA code:
Option Explicit

Sub createSheetsForShiftsInMonth()
Dim CurYear As Long
Dim intMonth As Integer
Dim intDay As Integer
Dim intShift As Integer
Dim intNumDaysInMonth As Integer
Dim shtMaster As Worksheet
Dim strTemp As String

'get the number of the desired month as 1 to 12

intMonth = InputBox("enter the number of month. For example, 1 for January, 2 for February, etc.")
CurYear = Year(Now())
intNumDaysInMonth = Day(DateSerial(CurYear, intMonth + 1, 0))
'MsgBox intNumDaysInMonth

Set shtMaster = Worksheets("Master")

For intDay = 1 To intNumDaysInMonth
For intShift = 1 To 3
strTemp = MonthName(intMonth) & " " & intDay & " Shift " & intShift
shtMaster.Copy after:=Sheets(Sheets.Count)
ActiveSheet.Name = strTemp
Next intShift
Next intDay

End Sub

More details available at exceltrainingvideos.com/create-multiple-copies-of-master-sheet-automatically
Create Multiple Copies of Master Sheet AutomaticallyA Super Simple Inventory Automation SystemAnalyze Data Using DGET FunctionPower BI Desktop Data Analysis VisualizationsHow to Open Most Recent File from Specific FolderDump Web Page Data into Worksheet | 2021Automate Slicer Creation Using Table Data2021 | Forgot Excel Password | How to Remove a Password from Excel | 100% SuccessUpdate Master Sheet with a ClickCreate Searchbox Using Filter Function AutomaticallyUser-form to Manage Data AutomaticallyHow to move from one control to another in a form on worksheet
Dinesh Kumar Takyar |

Create Multiple Copies of Master Sheet Automatically

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER