Hello,
Below is my code, the lastrowGSVGrowthRate is 101, I expected result is to copy all the "AFFILIATE" items. While with my code, it only copied the first "AFFILIATE" item. I do not know where I did wrong. Thanks so much!
B.regards/Yaping
raffiliate = 1
rowaffiliate = 1
Do While raffiliate <= lastrowGSVGrowthRate
If cells(raffiliate, 1) = "AFFILIATE" Then
MsgBox raffiliate
Range(cells(raffiliate, 1), cells(raffiliate, lastcolumnGSVGrowthRate)).Select
Selection.Copy
worksheets("AFFILIATE").Activate
ActiveSheet.cells(rowaffiliate, 1).Select
Selection.PasteSpecial Paste:=xlPasteAll
rowaffiliate = rowaffiliate + 1
Else
End If
raffiliate = raffiliate + 1
Loop