Forum Discussion

GMSchaaf's avatar
GMSchaaf
Copper Contributor
Nov 08, 2019
Solved

Help to modify if/then statement of an existing code

Hi,    I found this bit of code that works very well to go through a spreadsheet and when it finds a colored cell, it colors the corresponding header red. Works great.   https://stackoverflow.com...
  • Riny_van_Eekelen's avatar
    Nov 09, 2019

    GMSchaaf 

     r.Formula = "False" Then will do the trick if you want to look for the text "False". If you want to change the header when a cell contains the value FALSE (like in TRUE or FALSE) you can use  r.Value = False Then. But this one will also color the header when it finds blank cells and cells that contain 0 (zero).

     

Resources