> I think this is possible but I'm not certain of the way the code would look.
> I have an extract that comes to me in Excel format and I have a Macro that
[quoted text clipped - 32 lines]
>
> I hope this makes sense.
That worked perfectly. Thank you so much. Is there a way to have the inserted
row have a background color ... say yellow maybe?
I tried modifying the line
curselection.Offset(1, 0).EntireRow.Insert
to include
Interior.ColorIndex = 41
so it was
curselection.Offset(1, 0).EntireRow.Insert.Interior.ColorIndex = 41
but I got an error, I'm not surprised. It was a long shot but I thought it
was worth trying. Any ideas would be great.
Thanks again.
> This goes through and looks at column A and inserts a row where there are
> changes. Hope this helps!
[quoted text clipped - 55 lines]
> >
> > I hope this makes sense.
StumpedAgain - 25 Jul 2008 17:54 GMT
You could do:
curselection.Offset(1, 0).EntireRow.Insert
curselection.Offset(1, 0).EntireRow.Select
Selection.Interior.ColorIndex = 41 '41 is blue yellow is 6
Set curselection = curselection.Offset(1, 0)
Hope this helps!

Signature
-SA
> That worked perfectly. Thank you so much. Is there a way to have the inserted
> row have a background color ... say yellow maybe?
[quoted text clipped - 69 lines]
> > >
> > > I hope this makes sense.
Rick Rothstein (MVP - VB) - 25 Jul 2008 17:57 GMT
Add this line...
curselection.Offset(1, 0).EntireRow.Interior.ColorIndex = 41
right after this line...
curselection.Offset(1, 0).EntireRow.Insert
although ColorIndex 41 is not yellow on my system (it's blue).
Rick
> That worked perfectly. Thank you so much. Is there a way to have the
> inserted
[quoted text clipped - 76 lines]
>> >
>> > I hope this makes sense.
FrankM - 25 Jul 2008 19:16 GMT
Thank you. Both Rick and SA you both helped me out quite a bit. I really
appreciate it.
Worked like a charm.
Yes I know the ColorIndex in my example was Blue not Yellow, I was just
picking random colors just for examples. Thank you for pointing me in the
right direction. I am very grateful.
> That worked perfectly. Thank you so much. Is there a way to have the inserted
> row have a background color ... say yellow maybe?
[quoted text clipped - 69 lines]
> > >
> > > I hope this makes sense.