Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 96
Default Users in different countries error

I have a macro that is used by people in the US and in
Germany. The macro adds columns to check total debits vs.
total credits.

When I run it in the US, it works fine because it sees
50.25. But when the macro runs for one of the German
users, it sees 50,25 and it doesn't use the 25 in
calculating the total.

I can identify whether or not the user is from Germany in
the spreadsheet and I'm looking for some code or
suggestions on how to have the macro add up the German
numbers 50,25?

Thanks for the help.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Users in different countries error

Hi
could you post your macro. In general which should no be an issue as
also for the german version VBA uses the dot as decimal separator

--
Regards
Frank Kabel
Frankfurt, Germany

"JT" schrieb im Newsbeitrag
...
I have a macro that is used by people in the US and in
Germany. The macro adds columns to check total debits vs.
total credits.

When I run it in the US, it works fine because it sees
50.25. But when the macro runs for one of the German
users, it sees 50,25 and it doesn't use the 25 in
calculating the total.

I can identify whether or not the user is from Germany in
the spreadsheet and I'm looking for some code or
suggestions on how to have the macro add up the German
numbers 50,25?

Thanks for the help.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Users in different countries error

There might be a no-code solution to this, if you look into the 'regional
settings' on the computers concerned.
Unless you are actually looking for a '.' character in the figures, Excel
should return you a correct number assuming it has been entered according to
that countries settings.

If you are trying to CODE round regional differences, BEWARE DATES! they are
a complete bitch, I have spent many an unhappy day trying to find date
formatting bugs. :-(

eg 10/11/04 - 10th November (Europe), or 11th October (US) etc...

Cheers,

ChrisM

"JT" wrote in message
...
I have a macro that is used by people in the US and in
Germany. The macro adds columns to check total debits vs.
total credits.

When I run it in the US, it works fine because it sees
50.25. But when the macro runs for one of the German
users, it sees 50,25 and it doesn't use the 25 in
calculating the total.

I can identify whether or not the user is from Germany in
the spreadsheet and I'm looking for some code or
suggestions on how to have the macro add up the German
numbers 50,25?

Thanks for the help.



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
Colorizing countries Babymech Excel Discussion (Misc queries) 0 June 5th 09 11:13 PM
formatting in different countries Libby Excel Worksheet Functions 5 May 11th 08 09:41 PM
#NAME? Some users get error some don't? Suzanne Excel Discussion (Misc queries) 3 March 20th 07 04:39 PM
Recurring Excel Formula error - multiple users affected! Rayo K Excel Discussion (Misc queries) 3 April 11th 06 02:22 PM
Why are german users getting an error with Mround? ATP installed. Stumblinthrulife Excel Worksheet Functions 2 February 15th 06 06:24 PM


All times are GMT +1. The time now is 08:51 AM.

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"