Hi,
I am looking for a vba CODE to copy range (A2) if cell (b2) value is greater than 0, if yes copy range (A2) and paste it in the next empty row and then move to the next row until the last used row.
for example:
If cell (b2) value is 1 then copy range A2 and paste it one time in the next empty row.
if cell (B2) value is 0 then nothing.
if cell (B3) value is 7 then copy range (A3) AND PASTE IT seven TIMES in the next empty row.
If cell (B4) value is 4 then copy range A4 and paste it four times in the next empty row.
As shown in the table below.
Thanks in advance for your help.
Best Regards,
Shafiq
I am looking for a vba CODE to copy range (A2) if cell (b2) value is greater than 0, if yes copy range (A2) and paste it in the next empty row and then move to the next row until the last used row.
for example:
If cell (b2) value is 1 then copy range A2 and paste it one time in the next empty row.
if cell (B2) value is 0 then nothing.
if cell (B3) value is 7 then copy range (A3) AND PASTE IT seven TIMES in the next empty row.
If cell (B4) value is 4 then copy range A4 and paste it four times in the next empty row.
As shown in the table below.
Thanks in advance for your help.
Best Regards,
Shafiq