Hi
I have searched all over the net and found a few threads with the same issue but not one with a solution.
My issue is I have conditional formatting controlling if dates should be printed in: mmm, yyyy og dd etc. (for a gantt chart)... this could of cause also be solved by writing a formula instead of using conditional formatting. BUT for some of the cells I need to set custom format to ;;; (to hide the text form users.. this cannot be done with a formula).
I have a drop down box to choose if dates are shown i months, weeks or days.
Problem is that when the drop down box is changed the conditional formatting is NOT updating. After changing the drop down box I have to preform 2 updates of random cells before the formatting is updates (not 1 but 2 changes which is very strange...)
The following fixes do NOT work:
1) EnableFormatConditionsCalculations is set TRUE in the VBA properties for the sheet (has no affect on above issue)
2) The sheet is of cause set to auto calculate.
3) All forms of calculations on the worksheet does not update the formatting
I have solved this by writing below function in VBA.. however I think this is a bad solution as I wanted a workbook without code + the user are not able to undo any changes in the workbook when I'm using the Worksheet_Calculate function:
(is there any way to upload the workbook so I can share it with you?)
Excel 2007
Hope there are some clever guys out there who can help with this little problem
Best regards
Stine
I have searched all over the net and found a few threads with the same issue but not one with a solution.
My issue is I have conditional formatting controlling if dates should be printed in: mmm, yyyy og dd etc. (for a gantt chart)... this could of cause also be solved by writing a formula instead of using conditional formatting. BUT for some of the cells I need to set custom format to ;;; (to hide the text form users.. this cannot be done with a formula).
I have a drop down box to choose if dates are shown i months, weeks or days.
Problem is that when the drop down box is changed the conditional formatting is NOT updating. After changing the drop down box I have to preform 2 updates of random cells before the formatting is updates (not 1 but 2 changes which is very strange...)
The following fixes do NOT work:
1) EnableFormatConditionsCalculations is set TRUE in the VBA properties for the sheet (has no affect on above issue)
2) The sheet is of cause set to auto calculate.
3) All forms of calculations on the worksheet does not update the formatting
I have solved this by writing below function in VBA.. however I think this is a bad solution as I wanted a workbook without code + the user are not able to undo any changes in the workbook when I'm using the Worksheet_Calculate function:
Code:
Private Sub Worksheet_Calculate()
'The conditional formatting is not updating when value of dropdown box is changed... Therefore the value is forced to update the formatting
Application.EnableEvents = False
Range("rgCalanderRange") = Range("rgCalanderRange")
Application.EnableEvents = True
End Sub
(is there any way to upload the workbook so I can share it with you?)
Excel 2007
Hope there are some clever guys out there who can help with this little problem
Best regards
Stine