Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Application.DecimalSeparator usage.

Hi, I'm dealing with the decimal and thousands separator issue.

I'm taking a number through a WebQuery and its format is "," as
Thousands separator and "." for Decimal Separator. I tried to do the
checking to change the format of this number according to the user
separators, but when I type ?Application.DecimalSeparator in the
Inmediate window, I get ",", but if I type a number in Excel, it's using
the ".".
How do I understand this?
Which one would be the best way to format a number according to the user
separators if it come as "123,456,789.012"?

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Application.DecimalSeparator usage.

Beto wrote:

Hi, I'm dealing with the decimal and thousands separator issue.

I'm taking a number through a WebQuery and its format is "," as
Thousands separator and "." for Decimal Separator. I tried to do the
checking to change the format of this number according to the user
separators, but when I type ?Application.DecimalSeparator in the
Inmediate window, I get ",", but if I type a number in Excel, it's using
the ".".
How do I understand this?
Which one would be the best way to format a number according to the user
separators if it come as "123,456,789.012"?


On a side note, Application.International(xlDecimalSeparator) seems to
be returning the actual separator used in Excel. Any problems using this
command to recognize this? Is it available in all versions?

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Application.DecimalSeparator usage.

I think this is the correct usage :-

x=Excel.XlApplicationInternational.xlDecimalSepara to

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Application.DecimalSeparator usage.

BrianB < wrote:

I think this is the correct usage :-

x=Excel.XlApplicationInternational.xlDecimalSepara tor


Why is that?
From the inmediate window:

? Application.International(xlDecimalSeparator)
..
? Excel.XlApplicationInternational.xlDecimalSeparato r
3

Wouldn't a "." be easier to use (and read the code) than a 3?

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Application.DecimalSeparator usage.

The 3 is the value of the constant - it has no relationship to which
separator is being used.

--
Regards,
Tom Ogilvy


"Beto" wrote in message
...
BrianB < wrote:

I think this is the correct usage :-

x=Excel.XlApplicationInternational.xlDecimalSepara tor


Why is that?
From the inmediate window:

? Application.International(xlDecimalSeparator)
.
? Excel.XlApplicationInternational.xlDecimalSeparato r
3

Wouldn't a "." be easier to use (and read the code) than a 3?

Regards,
--
Beto
Reply: Erase between the dot (inclusive) and the @.
Responder: Borra la frase obvia y el punto previo.





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
Excel CPU Usage Jasper Recto Excel Discussion (Misc queries) 5 September 25th 08 06:09 PM
100% cpu usage bill Excel Discussion (Misc queries) 1 March 2nd 06 10:27 AM
HOW MANY 'IF CONDITIONS' CAN BE USED IN ONE SUCH USAGE? Use of 'IFs' in MS Excel. Excel Worksheet Functions 3 June 30th 05 01:26 PM
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
application.quit will not shut off application john Excel Programming 0 January 9th 04 11:29 PM


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