Im kinda new to VBA so I need some help. I have attached two files which you could open in paint. The thing is that I want to create a macro that add values from attachment 1 to the second attachment. In attachment two I want to create a pivottable with five columns. Column A will be the name of the sheet. Column B will be named after the merged cell in attachment 1 (B7:E8). The third column will be named after the first row in attachment 1 (eg. Airvents.. and A-pillar..). The fourth column will be named after the same row as materials (eg. Airvents.. and A-pillar..) but instead in column B. The fifth column will be named after the same row as materials (eg. Airvents.. and A-pillar..) but instead in column E.
I understand this is bit hard to understand but ask any question and I will try to answer them.
The idea I have is that the makro can look something like the following
[CODE]
Worksheets("Summary").Cells(pivåCounter, 1).Value =
Worksheets("Summary").Cells(pivåCounter, 2).Value =
Worksheets("Summary").Cells(pivåCounter, 3).Value =
Worksheets("Summary").Cells(pivåCounter, 4).Value =
Worksheets("Summary").Cells(pivåCounter, 5).Value =
Worksheets("Summary").Cells(pivåCounter, 6).Value =
Thanks in advance.
[CODE/]
Bookmarks