I hope someone here can help me with the following (it should actually be rather simple).
I have an excel worksheet containing Products, some details to each product and a Page number that indicates which page in the catalouge a certain Porduct is on.
What I need is to link those products to certain pages in my indesign catalouge.
However there is sometimes changes to the products, and some even disappear.
I need different worksheets for each page in my excel map.
Those sheets have to autoupdate if something on my first "input" sheet is changed.
For each pagenumber that exists in my "pagenumber"-Colum on my input worksheet a different worksheet needs to be created.
In those the content must always be like this:
A Header Row (based on my input sheet) and then in each row the specific products with their properties
What I have come up with so far is not very useful, but a start:
Code
Private Sub Worksheet_Change(ByVal Target As Range)
Dim MyCell As Range, MyRange As Range
Set MyRange = Sheets("Input").Range("E2:E5")
Set MyRange = Range(MyRange, MyRange.End(xlDown))
For Each MyCell In MyRange
Sheets.Add After:=Sheets(Sheets.Count) 'creates a new worksheet
Sheets(Sheets.Count).Name = MyCell.Value ' renames the new worksheet
Next MyCell
End Sub
My Input Worksheet basically looks like this:
Product Number; Product Name; Product Description 1; 2 and; 3; Price; catalouge page; some more colums that are not necessary
P133; Box Large; A Large Box 12x12; ""; ""; 4$; P. 1.5; asdf;asdf
Thank you!