View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Kim Kim is offline
external usenet poster
 
Posts: 284
Default code to merge cells with criteria

Hi
I have a sheet which shows daily events over a month blocked off with a
colour shaded cell, when a pointer is hovered over a cell an inserted comment
box gives text info about the event. A few days have 2 events so differnt
colour shades. So to do this I merge the cells that are single events and
this lets me have two comment boxes in the two unmerged cells.
This means a lot of pairs of adjacent cells have to be be merged as there a
re more venues for each day.
Is there a way a macro or something could be run that would check the cell
to the left and it it was unshaded merge the two cells?
Thanks