.. Hi Jammy Cunlture
. here’s another one, using VBA Arrays...
...The code can be greatly simplified, i just prefer to “open” it out a bit to help remind me and understand what is going on...
....Also sections –
3a) can be done away with if you have an idea what the maximum possible number of rows in the grocery list could ever be.
3c) can be done away altogether with unless you may have anything further down in grocery list (This bit just trims an Array for the Outputted grocery list to the maximum needed before pasting out to the Grocery list. )
. Code does the same consolidating as all codes given.
....
( The Before...)..Takes.these
Using Excel 2007
Row\Col |
A |
B |
1 |
Quantity |
Item |
2 |
|
apples |
3 |
3 |
oranges |
4 |
1 |
bannana |
Using Excel 2007
Row\Col |
A |
B |
1 |
Quantity |
Item |
2 |
|
carrot |
3 |
|
celery |
4 |
3 |
tomato |
Using Excel 2007
Row\Col |
A |
B |
1 |
Quantity |
Item |
2 |
|
chicken |
3 |
1 |
steak |
4 |
|
pork chop |
.........
( The After...)..Returns this
Using Excel 2007
Row\Col |
A |
B |
1 |
Quantity |
Item |
2 |
3 |
oranges |
3 |
1 |
bannana |
4 |
3 |
tomato |
5 |
1 |
steak |
............................
Code
....
Let us all know please how you get on
Alan
Bookmarks