Hello,
I have create a VBA procedure that is causing me trouble because I need to use it with 2 different computers.
my laptop need to be in French(Canada) in format under: Region and Language
but my desktop needs to be in English(US)...
In the french version the , is remplace by ;
for exemple: here is a part of my code that will only work with the desktop (English)
Range("D2:D" & Range("D" & Rows.Count).End(xlUp).Row).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=AND(D1<>"""",D2<>"""",D1+1<>D2)"
here is the part that will work with the laptop:
Range("D2:D" & Range("D" & Rows.Count).End(xlUp).Row).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=AND(D1<>"""";D2<>"""";D1+1<>D2)"
is there something I could do to make my VBA work with both settings without having 2 differents VBA file?
I have create a VBA procedure that is causing me trouble because I need to use it with 2 different computers.
my laptop need to be in French(Canada) in format under: Region and Language
but my desktop needs to be in English(US)...
In the french version the , is remplace by ;
for exemple: here is a part of my code that will only work with the desktop (English)
Range("D2:D" & Range("D" & Rows.Count).End(xlUp).Row).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=AND(D1<>"""",D2<>"""",D1+1<>D2)"
here is the part that will work with the laptop:
Range("D2:D" & Range("D" & Rows.Count).End(xlUp).Row).Select
Selection.FormatConditions.Add Type:=xlExpression, Formula1:= _
"=AND(D1<>"""";D2<>"""";D1+1<>D2)"
is there something I could do to make my VBA work with both settings without having 2 differents VBA file?