Condtional formatting multiple date ranges using VBA

cplatts85

New Member
Joined
May 22, 2015
Messages
1
Hello everyone

Please be careful with me as I am new to conditional formatting using VBA

I am looking to conditional format a range (basically a grid with a calendar year entered into it) from a list of dates as below but I also want to sub categorise the dates in different colours.

Is this possible? and if so how the hell do I do it?!

Category 1
From To
01-Apr-15 15-Apr-15
05-Jun-15 20-Jun-15
26-Aug-15 08-Sep-15
18-Dec-15 06-Jan-16

Category 2
From To
01-May-15 15-May-15
05-Jul-15 20-Jul-15
26-Sep-15 08-Oct-15
18-Jan-16 06-Feb-16

Category 3
From To
01-Jun-15 04-Jun-15
05-Aug-15 20-Aug-15
26-Oct-15 08-Nov-15
18-Feb-16 06-Mar-16
 

Forum statistics

Threads
1,081,626
Messages
5,360,101
Members
400,570
Latest member
Ben Morgan 1985

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top