Hi,
I am new to the forum and a stranger to Visual Basic. I have a worksheet in Excel 2010 that has rows like this:
PLANT TYPE COLOUR PRICE NUMBER
Achillea kamtschatica gr cover pink $2.00 1
Agastache perennial blue $1.00 3
Ajuga gr cover blue $1.00 2
I have to print labels for a charity plant sale with the name of the plant, type, colour, and price on each label. The number of labels for each plant is given in the NUMBER column. I would like to have a macro that will copy each row just the number of times that is specified in the NUMBER column, so that after the macro runs, the worksheet will look like this:
PLANT TYPE COLOUR PRICE NUMBER
Achillea kamtschatica gr cover pink $2.00 1
Agastache perennial blue $1.00 3
Agastache perennial blue $1.00 3
Agastache perennial blue $1.00 3
Ajuga gr cover blue $1.00 2
Ajuga gr cover blue $1.00 2
I would be enormously grateful if someone would send me a macro script that I could paste into Excel's macro editor.
Thanks in advance!
Arthur
Bookmarks