• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Need your help for 3 major problem

Hi,

For the 1st issue use 'Cell value is' instead of 'Formula is' in conditional formatting

Will comback on the remaining issues
 
Last edited:
Hi,

Use the below procedure for the 2nd requirement

Code:
Sub Formatting()

  Range("A1").Select
  
  On Error GoTo Err
  Do Until ActiveCell.Column = 20000
  Columns(ActiveCell.Column).Interior.ColorIndex = 6
  Columns(ActiveCell.Offset(0, 1).Column).Interior.ColorIndex = 3
  Columns(ActiveCell.Offset(0, 2).Column).Interior.ColorIndex = 44
  Columns(ActiveCell.Offset(0, 3).Column).Interior.ColorIndex = 1
  
  ActiveCell.Offset(0, 5).Select
  Loop
  
Err:
  
End Sub
 
Different document is having different start and end date , and these range can be change as per the project priority.
 
Hi,

The challenge in your 3rd task is how to arrive at start date and end date for a project based on coloring

We will not be able to create conditional formating based on color of cells

Let me explore other methods and come back
 
I have a logic but dont know how to transform it into code.

logic is " we cross check IS CELL COLOR = YELLOW, AND IS DATE IS TODAY

IF YES THEN CELL COLOR ( RELATED LEFT SIDE DOCUMENT LIST CELL) = GREEN

THIRD FLAG IF DATE IS LESS THAN TODAY THEN CELL COLOR = RED
 
Back
Top