Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Ive run into a conditional formatting issue. I have a UDF to pull data from
other workbooks, a worksheet-change code to conditionally format my cells, and an OnTime function that updates the pulled data every 5 minutes. The timer works, the pull function works, and the conditional formatting works until new data is pulled into the worksheet. Once the cell color formatting is set, it doesnt change with the newly pulled data. In order for me to get the cell formatting to reflect the color choices in the code, I have to select the cell and put my cursor into the formula and press enter, then it will finally change colors. Im using CalculateFull within the timer and Ive tried CalculateFullRebuild (although I dont know the difference) and tried DoEvents. Id like for it to update the colors automatically at the time data is updated. What can I do to trigger this? (Im running Excel 2003, and I dont have the option to use the CFPlus Add-In.) Any help is much appreciated!!! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This is from Worksheet_Change help file:
This event doesn't occur when cells change during a recalculation. Use the Calculate event to trap a sheet recalculation. This is from the FormatConditions help file: Use the FormatConditions property to return a FormatConditions object. Use the [Add] method to create a new conditional format, and use the [Modify] method to change an existing conditional format. From what I see, you would need to have code to modify after the initial add takes place, and cannot use calculate to trigger the worksheet change event if that is how you are running the format conditions code. "Stonewall Rubberbow" wrote: Ive run into a conditional formatting issue. I have a UDF to pull data from other workbooks, a worksheet-change code to conditionally format my cells, and an OnTime function that updates the pulled data every 5 minutes. The timer works, the pull function works, and the conditional formatting works until new data is pulled into the worksheet. Once the cell color formatting is set, it doesnt change with the newly pulled data. In order for me to get the cell formatting to reflect the color choices in the code, I have to select the cell and put my cursor into the formula and press enter, then it will finally change colors. Im using CalculateFull within the timer and Ive tried CalculateFullRebuild (although I dont know the difference) and tried DoEvents. Id like for it to update the colors automatically at the time data is updated. What can I do to trigger this? (Im running Excel 2003, and I dont have the option to use the CFPlus Add-In.) Any help is much appreciated!!! |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Of course, the modify is only if you want to change the parmeters of the
initial setting. "Stonewall Rubberbow" wrote: Ive run into a conditional formatting issue. I have a UDF to pull data from other workbooks, a worksheet-change code to conditionally format my cells, and an OnTime function that updates the pulled data every 5 minutes. The timer works, the pull function works, and the conditional formatting works until new data is pulled into the worksheet. Once the cell color formatting is set, it doesnt change with the newly pulled data. In order for me to get the cell formatting to reflect the color choices in the code, I have to select the cell and put my cursor into the formula and press enter, then it will finally change colors. Im using CalculateFull within the timer and Ive tried CalculateFullRebuild (although I dont know the difference) and tried DoEvents. Id like for it to update the colors automatically at the time data is updated. What can I do to trigger this? (Im running Excel 2003, and I dont have the option to use the CFPlus Add-In.) Any help is much appreciated!!! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Create column with data pulled from header row | Excel Discussion (Misc queries) | |||
Specific data pulled to new tab | Excel Discussion (Misc queries) | |||
How do I manipulate data pulled from within an excel calendar? | Excel Discussion (Misc queries) | |||
Using AutoFilter to Sort Data Pulled in by INDEX / MATCH | Excel Worksheet Functions | |||
Refreshing Data Pulled Thru a Function | Excel Programming |