Hi
What would be the most efficient or easiest VBA to achieve below:
VBA would fill all the all the empty cells in col I with value "OPEN". This would be from cell I2 (inclusive) downwards as far as the rows go in col A.
So the below would change:
From this:
-------------- -------------- Col A ----------------------------- Col I
Row 1 -------------- order number ---------- Schedule State
Row 2 -------------- Order 1 ---------------------- RECEIVED
Row 3 -------------- Order 2 ---------------------- RECEIVED
Row 4 -------------- Order 3 ---------------------- RECEIVED
Row 5 -------------- Order 4 ---------------------- --------------
Row 6 -------------- Order 5 ---------------------- --------------
Row 7 -------------- Order 6 ---------------------- --------------
Row 8 -------------- Order 7 ---------------------- --------------
Row 9 -------------- -------------- ---------------------- --------------
Row 10 -------------- -------------- ---------------------- --------------
Row 11 -------------- -------------- ---------------------- --------------
Row 12 -------------- -------------- ---------------------- --------------
Row 10 -------------- -------------- ---------------------- --------------
To this:
-------------- -------------- Col A ----------------------------- Col I
Row 1 -------------- order number ---------- Schedule State
Row 2 -------------- Order 1 ---------------------- RECEIVED
Row 3 -------------- Order 2 ---------------------- RECEIVED
Row 4 -------------- Order 3 ---------------------- RECEIVED
Row 5 -------------- Order 4 ---------------------- OPEN
Row 6 -------------- Order 5 ---------------------- OPEN
Row 7 -------------- Order 6 ---------------------- OPEN
Row 8 -------------- Order 7 ---------------------- OPEN
Row 9 -------------- -------------- ---------------------- --------------
Row 10 -------------- -------------- ---------------------- --------------
Row 11 -------------- -------------- ---------------------- --------------
Row 12 -------------- -------------- ---------------------- --------------
Row 10 -------------- -------------- ---------------------- --------------
Columns are always arranged by column I so the empty cell ones will always be at the bottom. It would be nice to have a solution that does not loop. Any help is always appreciated.
Bookmarks