From: Wackyracer on
I have used the Gord's VB code posted on here to insert a blank row after
each change in cell reference without problem several times.

I now have a worksheet that will not run it correctly. It now inserts a
blank row if the cells text colour changes, although when I paste these
different cells into another worksheet using edit special paste = values the
cells justify either left or right depending upon their colour. The different
colours come from different worksheets so I assume it must be something to do
with their formatting but the properties for each one appears the same. If I
manually enter the same references in another column and run the macro to
work off this column then it runs properly. unfortunately I have 4500 rows.

Any ideas?
From: Wackyracer on
Sorted. As I thought some of the cells were infact text. Re-formatted and
everything working.

"Wackyracer" wrote:

> I have used the Gord's VB code posted on here to insert a blank row after
> each change in cell reference without problem several times.
>
> I now have a worksheet that will not run it correctly. It now inserts a
> blank row if the cells text colour changes, although when I paste these
> different cells into another worksheet using edit special paste = values the
> cells justify either left or right depending upon their colour. The different
> colours come from different worksheets so I assume it must be something to do
> with their formatting but the properties for each one appears the same. If I
> manually enter the same references in another column and run the macro to
> work off this column then it runs properly. unfortunately I have 4500 rows.
>
> Any ideas?