Coloring rows to show groups of records

A

Andrew Malcolmson

I have a report where one or more rows belong to a group and I'd like
to color rows to help the reader easily see what rows belong together.

I'm trying to do this by writing a VBA function that tests for changes
in the column that distinguishes the groups. I then call this
function in a Conditional Formating condition to set the row color to
the alternate color from the row above. This seems to work but Excel
keeps crashing.

There must be a standard way to do this but I haven't found anything
yet, so any ideas appreciated.
 
A

Andrew Malcolmson

Frank Kabel said:
Hi
how are your rows separated. Probably no need for VBA at all

Each row describes an expenditure record. One column shows the name
of the department that did the spending. There could be any number of
rows/records for any one department.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top