Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I apologize for the re-post, but I was suprised my original went unanwsered.
I'm sure someone knows what I am doing worng. I have the following code called by the Workbook_SheetCalculate event. It works, however it seems to have a mind of it's own. When I check the conditonal format of Cell G2 it reads =AND($H3="",$G3<=TODAY()). It should read H2 & G2. I don't understand what is causing this, At other times the numbers are way off for instance H62000 and other times I get the !REF error. I have tried various methods to first select or activate cell G2 prior to running this code but nothing seems to help. What am I doing wrong that Excel won't start at G2 and autofill down incrementing as needed For Each Sh In ThisWorkbook.Worksheets shLast = LastRow(Sh) With Sh.Range("G2:G" & shLast) .FormatConditions.Delete .FormatConditions.Add Type:=xlExpression,Formula1:="=AND($H2="""",$G2<=T ODAY())" .FormatConditions(1).Font.Bold = True .FormatConditions(1).Font.ColorIndex = 3 End With Next |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
OR(EXACT(Cell; Range)) does not work properly | Excel Worksheet Functions | |||
Cell Referal between tabs fails to work properly on home computer | Excel Worksheet Functions | |||
AutomaticScale doesn't work properly | Charts and Charting in Excel | |||
Excel VBA-use variable in active cell formula problem | Excel Programming | |||
Problem with Active Cell Refence | Excel Programming |