ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Insert blank row after change in cell value not working. (https://www.excelbanter.com/excel-discussion-misc-queries/255056-insert-blank-row-after-change-cell-value-not-working.html)

Wackyracer

Insert blank row after change in cell value not working.
 
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?

Wackyracer

Insert blank row after change in cell value not working.
 
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?



All times are GMT +1. The time now is 04:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com