Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Function used in conditionnal formating not using good language...

Hi,

I've created a workplan in Excel 2003 sp3. Each line is conditionnaly
formatted using the status of the activity it contains.

EX :
Activity... ...status...
Wash the floor... Do do...

When the activity is not yet processed, it is not formatted, when it is done
without problem it is formatted in green, when it has been delayed it is
yellow and when there is a problem, it is formatted in red.

This does not make any error.

My problem is : when I add a formula in the condition. For exemple, if I
want to format line in yellow if the activity has been cancelled or when it
is delayed.

Then the second condition become something like this :
Type:=xlExpression, Formula1:= "=OR($H10=""Completed"";$H10=""Already done"")"

Some other person than me can use my file and they don't nessary have the
same setting then I have. For exemple, some of them have a French version of
Excel running (still 2003 sp3 though).

In that case, if they go in conditionnal formating window, they see :
=OR($H10="Completed";$H10="Already done")
instead of
=OU($H10="Completed";$H10="Already done")

Notice : OR vs OU (English vs French)

By typing "OU" themselve the function is working properly.

I actually use a use a function like this to update the conditions
automatically :


Sub UpdateConditionnalFormating()
Dim i As Integer

Application.Calculation = xlCalculationManual
Application.DisplayAlerts = False
Application.ScreenUpdating = False

For i = 9 To Range("D65536").End(xlUp).Row + 1
Range("C" & i & ":J" & i).Select
Selection.FormatConditions.Delete
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=OR($H" & i & "=""Complété"";$H" & i & "=""DéjÃ* fait"")"
Selection.FormatConditions(1).Interior.ColorIndex = 4
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=OR($H" & i & "=""Sauté"";$H" & i & "=""À ne pas faire"")"
Selection.FormatConditions(2).Interior.ColorIndex = 6
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=$H" & i & "=""Échoué"""
Selection.FormatConditions(3).Interior.ColorIndex = 3
Next

Application.Calculation = xlCalculationAutomatic
Application.DisplayAlerts = True
Application.ScreenUpdating = True
End Sub


Is there any way to make it working without having to run that macro on the
opening of the file ??

Thanks a lot !
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Function used in conditionnal formating not using good language...

Hi !

Nobody has a clue on this issue ? It appears that even with the procedure at
the opening of the file i may have a problem when using a different language
than the one I used to create the file.

Thanks !
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
And in case I don't see you,good afternoon,good evening,and good n msnyc07 Excel Discussion (Misc queries) 1 June 1st 10 11:24 AM
How to create icon sets for excel 2007 conditionnal formating ? Julien Montserrat Excel Discussion (Misc queries) 1 January 30th 07 05:50 PM
How to program a macro to hide rows with conditionnal formating Turquoise_dax[_5_] Excel Programming 1 June 21st 06 03:32 AM
How to program a macro to hide rows with conditionnal formating Turquoise_dax Excel Discussion (Misc queries) 5 June 20th 06 04:33 PM
Good morning or good evening depending upon your location. I want to ask you the most important question of your life. Your joy or sorrow for all eternity depends upon your answer. The question is: Are you saved? It is not a question of how good davegb Excel Programming 1 May 6th 05 06:35 PM


All times are GMT +1. The time now is 11:47 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"