I need some help guys, I am so stuck on this. I want to copy some rows of data which are displayed as shown in the image below. Example of the source of the data:
I want to transpose this data and paste it to another sheet, as shown in the image following the next link. This is the desired result. I filled this sheet manually.
The difficult part is that after every row is pasted in to a column, a colum needs to be skipped. This is the code I got. This code skips a column like it should, but the data is not pasted in the correct way - as you can see in the following example. Example of the result/paste sheet
Im so stuck on this. Somebody who knows how I can tackle this? Help is much appreciated.
Dim iLastRow As Integer
'vind laatste rij
iLastRow = ThisWorkbook.Sheets("Mappen_Outlook").Cells(Rows.Count, 1).End(xlUp).Row
For x = 2 To iLastRow
'kopieer submap 3 vanuit mappen naar SLA
ThisWorkbook.Sheets("Mappen_Outlook").Range("D" & x & ":D" & x).Copy
ThisWorkbook.Sheets("SLA").Range("B2").End(xlUp).Offset(1, (x - 2) * 2).PasteSpecial xlPasteValues
'kopieer de oudste datum vanuit mappen naar SLA
ThisWorkbook.Sheets("Mappen_Outlook").Range("G" & x & ":G" & x).Copy
ThisWorkbook.Sheets("SLA").Range("B3").End(xlUp).Offset(1, (x - 2) * 2).PasteSpecial xlPasteValues
'kopieer de totaalmails vanuit mappen naar SLA
ThisWorkbook.Sheets("Mappen_Outlook").Range("E" & x & ":E" & x).Copy
ThisWorkbook.Sheets("SLA").Range("B4").End(xlUp).Offset(2, (x - 2) * 2).PasteSpecial xlPasteValues
'kopieer het aantal op SLA vanuit mappen naar SLA
ThisWorkbook.Sheets("Mappen_Outlook").Range("I" & x & ":I" & x).Copy
ThisWorkbook.Sheets("SLA").Range("B5").End(xlUp).Offset(3, (x - 2) * 2).PasteSpecial xlPasteValues
'kopieer het aantal buiten SLA vanuit mappen naar SLA
ThisWorkbook.Sheets("Mappen_Outlook").Range("J" & x & ":J" & x).Copy
ThisWorkbook.Sheets("SLA").Range("B6").End(xlUp).Offset(4, (x - 2) * 2).PasteSpecial xlPasteValues
Next x