Thanx,
dit is een stukje van de macro binnen VB. Wat hij nu doet is alles verplaatsen naar de juiste posities binnen in de template. Alleen nu blijft hij hangen op "Worksheets("tst sheet").Cells(31, 2) = Worksheets("all issues").Cells(i, 28)" hieruit leert ons dat de originele cel te veel posities in beslag heeft genomen ( volgens excel telling 3265 karakters).
Dan komt ie ook met fout 1004 tijdens uitvoering. Wat ons met google'n leerde dat er teveel karakters zaten in een cel en hierbij niet konden worden verplaatst naar een andere cel.
Worksheets("static data").Activate
a = Cells(2, 1).Value
' Nu van onder naar boven de cellen vullen
For i = a To 2 Step -1
Worksheets("tst sheet").Cells(17, 2) = Worksheets("all issues").Cells(i, 1)
Worksheets("tst sheet").Cells(18, 2) = Worksheets("all issues").Cells(i, 2)
Worksheets("tst sheet").Cells(19, 2) = Worksheets("all issues").Cells(i, 3)
Worksheets("tst sheet").Cells(20, 2) = Worksheets("all issues").Cells(i, 4)
Worksheets("tst sheet").Cells(21, 2) = Worksheets("all issues").Cells(i, 6)
Worksheets("tst sheet").Cells(22, 2) = Worksheets("all issues").Cells(i, 7)
Worksheets("tst sheet").Cells(23, 2) = Worksheets("all issues").Cells(i,

Worksheets("tst sheet").Cells(24, 2) = Worksheets("all issues").Cells(i, 9)
Worksheets("tst sheet").Cells(25, 2) = Worksheets("all issues").Cells(i, 10)
Worksheets("tst sheet").Cells(26, 2) = Worksheets("all issues").Cells(i, 11)
Worksheets("tst sheet").Cells(27, 2) = Worksheets("all issues").Cells(i, 24)
Worksheets("tst sheet").Cells(28, 2) = Worksheets("all issues").Cells(i, 25)
Worksheets("tst sheet").Cells(29, 2) = Worksheets("all issues").Cells(i, 26)
Worksheets("tst sheet").Cells(30, 2) = Worksheets("all issues").Cells(i, 27)
Worksheets("tst sheet").Cells(31, 2) = Worksheets("all issues").Cells(i, 28)
Worksheets("tst sheet").Cells(17, 4) = Worksheets("all issues").Cells(i, 12)
Worksheets("tst sheet").Cells(18, 4) = Worksheets("all issues").Cells(i, 14)
Worksheets("tst sheet").Cells(19, 4) = Worksheets("all issues").Cells(i, 15)
Worksheets("tst sheet").Cells(20, 4) = Worksheets("all issues").Cells(i, 16)
Worksheets("tst sheet").Cells(21, 4) = Worksheets("all issues").Cells(i, 17)
Worksheets("tst sheet").Cells(22, 4) = Worksheets("all issues").Cells(i, 18)
Worksheets("tst sheet").Cells(23, 4) = Worksheets("all issues").Cells(i, 19)
Worksheets("tst sheet").Cells(24, 4) = Worksheets("all issues").Cells(i, 20)
Worksheets("tst sheet").Cells(25, 4) = Worksheets("all issues").Cells(i, 21)
Worksheets("tst sheet").Cells(27, 4) = Worksheets("all issues").Cells(i, 29)
' Template regels invoegen
Worksheets("tst sheet").Activate
Rows("1:16").Select
Range("A16").Activate
Selection.Copy
ActiveWindow.SmallScroll Down:=3
Rows("17:17").Select
Selection.Insert Shift:=xlDown
Next i
'
End Sub