supper's ready
New Member
- Joined
- Jun 3, 2011
- Messages
- 23
Hello,
i want to be able to bulk add new worksheets named after a list of names.
lets say the worksheets to add will be in a2:a16 though i won't necessarily have all the cells filled (maybe sometimes im only adding one).
in addition, for each worksheet added i will be defining a variable as a column address in b2:b16. This should be defined within a newly generated if statement
example:
Column A Column B
Nameofsheet B
results:
this will create a sheet named nameofsheet and also add some code like:
If Sheet.Name = "Nameofsheet" Then
Columns("B:B").Select
Selection.NumberFormat = "m/d/yyyy"
dtMin = WorksheetFunction.Min(Columns("B:B"))
dtMax = WorksheetFunction.Max(Columns("B:B"))
DayMin = Day(dtMin)
DayMax = Day(dtMax)
End If
this is static other than the column entered in column B and Sheet.Name
Thank you
i want to be able to bulk add new worksheets named after a list of names.
lets say the worksheets to add will be in a2:a16 though i won't necessarily have all the cells filled (maybe sometimes im only adding one).
in addition, for each worksheet added i will be defining a variable as a column address in b2:b16. This should be defined within a newly generated if statement
example:
Column A Column B
Nameofsheet B
results:
this will create a sheet named nameofsheet and also add some code like:
If Sheet.Name = "Nameofsheet" Then
Columns("B:B").Select
Selection.NumberFormat = "m/d/yyyy"
dtMin = WorksheetFunction.Min(Columns("B:B"))
dtMax = WorksheetFunction.Max(Columns("B:B"))
DayMin = Day(dtMin)
DayMax = Day(dtMax)
End If
this is static other than the column entered in column B and Sheet.Name
Thank you