M
MaxBrit
Hello
Some help or a pointer to where we can find a solution please.
We have an Excel 2002 workbook, with a list,dynamic named range.
For each item in this list we wish to copy a template worksheet an
name it to the value in the list.
On each new worksheet to create a dynamic range and give that the nam
in the list.
So if list was ProdA, ProdB, ProdC, would have corresponding sheets an
on sheet ProdA would have dynamic range named ProdA, on sheet ProdB
range ProdB and so on.
Sub CopySheets()
'
'For each product code entered in range create a worksheet based on th
template
'Rename sheet = product code
'Create a range name on each sheet to look up used parts
Dim c As Range
For Each c In Range("code_list")
Sheets("template").Copy After:=Sheets("template")
Sheets("template (2)").Name = c.Value & "1"
Next c
End Sub
Unable to get sheet name = to the value in the list.
Unable to see how to create a dynamic range for each sheet = produc
code.
Thanks for any help/advice.
Ma
Some help or a pointer to where we can find a solution please.
We have an Excel 2002 workbook, with a list,dynamic named range.
For each item in this list we wish to copy a template worksheet an
name it to the value in the list.
On each new worksheet to create a dynamic range and give that the nam
in the list.
So if list was ProdA, ProdB, ProdC, would have corresponding sheets an
on sheet ProdA would have dynamic range named ProdA, on sheet ProdB
range ProdB and so on.
Sub CopySheets()
'
'For each product code entered in range create a worksheet based on th
template
'Rename sheet = product code
'Create a range name on each sheet to look up used parts
Dim c As Range
For Each c In Range("code_list")
Sheets("template").Copy After:=Sheets("template")
Sheets("template (2)").Name = c.Value & "1"
Next c
End Sub
Unable to get sheet name = to the value in the list.
Unable to see how to create a dynamic range for each sheet = produc
code.
Thanks for any help/advice.
Ma