MarkoCroatia
New Member
- Joined
- Nov 26, 2017
- Messages
- 2
Hello everybody out there,
I do believe that VBA code is needed for my problem. So please, be kind and help me.
I have table with many dates (all dates are in one specific column).
Cells with dates are filled without some special order.
Filtering is not applicable, because of other data (data in other columns).
What is needed (Problem):
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; white-space: inherit;">Column (date) I conditional formatting interior cell color
A I (CF)
25.11.2017 I blue
26.11.2017 I red
26.11.2017 I red
26.11.2017 I red
22.11.2017 I blue
22.11.2017 I blue
25.11.2017 I red
etc. I etc.
</code>I am familiar with VBA, so VBA code would be great. I do believe, Private Sub is needed here.
Many thanks in advance.
Greetings from Croatia
Marko
I do believe that VBA code is needed for my problem. So please, be kind and help me.
I have table with many dates (all dates are in one specific column).
Cells with dates are filled without some special order.
Filtering is not applicable, because of other data (data in other columns).
What is needed (Problem):
- Is there a way to compare dates of neighbouring cells (cell above/below),
- If dates are same, then copy conditional formatting from 1 cell in column with same date,
- Conditional formatting changes only in case of a different neghbouring dates,
<code style="margin: 0px; padding: 0px; border: 0px; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; vertical-align: baseline; white-space: inherit;">Column (date) I conditional formatting interior cell color
A I (CF)
25.11.2017 I blue
26.11.2017 I red
26.11.2017 I red
26.11.2017 I red
22.11.2017 I blue
22.11.2017 I blue
25.11.2017 I red
etc. I etc.
</code>I am familiar with VBA, so VBA code would be great. I do believe, Private Sub is needed here.
Many thanks in advance.
Greetings from Croatia
Marko