LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default visual basic/conditional format problem in Spanish Excel, English VB

Hello,

I'm using Excel 2000 sp3, and i have some code that tries to do this (and
generally succeeds):

With rngTarget.FormatConditions.Add( _
Type:=xlExpression, _
Formula1:="=if(or(" & rngTargetTopCell.Address(False, False) &
strOperator _
& rngRed1.Address(False, False) & "," &
rngTargetTopCell.Address(False, False) _
& strOperator & rngRed2.Address(False, False) &
"),True,False)")

However, when someone at the company plant in Spain tries to run the code
(in Excel XP or whatever it's called, Excel 2003 maybe?), when it hits the
above line, error.

After a long slow debugging session over the internet between myself (not a
Spanish communicator) and the user in Spain (who speaks decent English but
knows nothing about visual basic, programming, or most excel worksheet
functions, I discovered that instead of trying to put in the conditional
format of
"=if(or(w3u3,w3t3),true,false)", I have to somehow get visual basic to put
in
"=si(O(w3u3;w3t3),verdadero,falso)" for the conditional format (not only
are the formulas different as one might expect but semicolons instead of
commas between the Or/O function arguments)

Yet I also know that if I send them a file where the formatting was done in
english, it will translate to spanish - how do I get VB to do that on the
fly?

Anyone have any help here?

(please reply to the ng)


 
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
Format dates from English to Spanish FA Excel Worksheet Functions 2 January 9th 09 01:09 PM
How do I switch my numbering in Excel from Spanish to English? mtmayes Excel Discussion (Misc queries) 1 January 18th 07 03:21 AM
visual basic .net and excel problem cappa Excel Programming 0 April 4th 06 03:33 AM
Converting excel currently in english to spanish Bernabe P Excel Programming 6 November 23rd 05 04:25 PM
How do I Translate English-Spanish in Excel Gary Barnard Excel Discussion (Misc queries) 0 February 3rd 05 01:33 AM


All times are GMT +1. The time now is 02:07 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"