Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Decimal Symbol

I am interested in knowing if there is a way in VBa to switch the Decimal
Symbol from the "." to the "," on the fly. For example if the text in B2
was "English" then I would want the Decimal Symbol to be recognized as the
period, but if the text was "French" then the decimal symbol would be the
comma.

Any advice? My goal is to avoid having to switch the regional settings.

Thanks in advance for thinking about it.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Decimal Symbol

It is defined in the regional settings of windows. It shouldn't need any
intervention if the workbook is being used no two different computers with
different regional settings.

--
Regards,
Tom Ogilvy


"dawson" wrote:

I am interested in knowing if there is a way in VBa to switch the Decimal
Symbol from the "." to the "," on the fly. For example if the text in B2
was "English" then I would want the Decimal Symbol to be recognized as the
period, but if the text was "French" then the decimal symbol would be the
comma.

Any advice? My goal is to avoid having to switch the regional settings.

Thanks in advance for thinking about it.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Decimal Symbol

Thanks for your reply Tom.

Most of the users who work with the spreadsheet work on English and French
files with different copies of the workbook. They have their regional
settings at English, but when they need to work on a French file they need to
switch the Regional settings to get the currency format correct. I was
looking for a way to provide them with a macro so they could switch the
Decimal Symbol from within excel (without having to adjust the regional
settings) on a file by file basis.

Anything else I could try?

Thanks again.

"Tom Ogilvy" wrote:

It is defined in the regional settings of windows. It shouldn't need any
intervention if the workbook is being used no two different computers with
different regional settings.

--
Regards,
Tom Ogilvy


"dawson" wrote:

I am interested in knowing if there is a way in VBa to switch the Decimal
Symbol from the "." to the "," on the fly. For example if the text in B2
was "English" then I would want the Decimal Symbol to be recognized as the
period, but if the text was "French" then the decimal symbol would be the
comma.

Any advice? My goal is to avoid having to switch the regional settings.

Thanks in advance for thinking about it.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Decimal Symbol

read through these threads:

http://groups.google.com/group/micro...02b371eb13edfb

http://groups.google.com/group/micro...0f630c42dec3c1

http://groups.google.com/group/micro...ng&rnum=22 #9

--
Regards,
Tom Ogilvy


"dawson" wrote:

Thanks for your reply Tom.

Most of the users who work with the spreadsheet work on English and French
files with different copies of the workbook. They have their regional
settings at English, but when they need to work on a French file they need to
switch the Regional settings to get the currency format correct. I was
looking for a way to provide them with a macro so they could switch the
Decimal Symbol from within excel (without having to adjust the regional
settings) on a file by file basis.

Anything else I could try?

Thanks again.

"Tom Ogilvy" wrote:

It is defined in the regional settings of windows. It shouldn't need any
intervention if the workbook is being used no two different computers with
different regional settings.

--
Regards,
Tom Ogilvy


"dawson" wrote:

I am interested in knowing if there is a way in VBa to switch the Decimal
Symbol from the "." to the "," on the fly. For example if the text in B2
was "English" then I would want the Decimal Symbol to be recognized as the
period, but if the text was "French" then the decimal symbol would be the
comma.

Any advice? My goal is to avoid having to switch the regional settings.

Thanks in advance for thinking about it.

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Decimal Symbol

Bad copy on that last one:

http://groups.google.com/group/micro...d093/9855b0cd1

c4db097?lnk=st&q=change+regional+setting+group%3Am icrosoft.public.excel.programming&rnum=22#9855b0cd 1c4db097

"dawson" wrote:

Thanks for your reply Tom.

Most of the users who work with the spreadsheet work on English and French
files with different copies of the workbook. They have their regional
settings at English, but when they need to work on a French file they need to
switch the Regional settings to get the currency format correct. I was
looking for a way to provide them with a macro so they could switch the
Decimal Symbol from within excel (without having to adjust the regional
settings) on a file by file basis.

Anything else I could try?

Thanks again.

"Tom Ogilvy" wrote:

It is defined in the regional settings of windows. It shouldn't need any
intervention if the workbook is being used no two different computers with
different regional settings.

--
Regards,
Tom Ogilvy


"dawson" wrote:

I am interested in knowing if there is a way in VBa to switch the Decimal
Symbol from the "." to the "," on the fly. For example if the text in B2
was "English" then I would want the Decimal Symbol to be recognized as the
period, but if the text was "French" then the decimal symbol would be the
comma.

Any advice? My goal is to avoid having to switch the regional settings.

Thanks in advance for thinking about it.



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,202
Default Decimal Symbol

Most of the users who work with the spreadsheet work on English and French
files with different copies of the workbook. They have their regional
settings at English, but when they need to work on a French file they need
to
switch the Regional settings to get the currency format correct. I was
looking for a way to provide them with a macro so they could switch the
Decimal Symbol from within excel (without having to adjust the regional
settings) on a file by file basis.


If your users have Windows XP, then this might be helpful...

http://www.microsoft.com/windowsxp/u...rlanguage.mspx

I think you can do something similar in Vista too (but I don't have a link
for it).

Rick

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Decimal Symbol

Tom and Rick. Thanks a lot for the links, I appreciate the suggestions.

"Rick Rothstein (MVP - VB)" wrote:

Most of the users who work with the spreadsheet work on English and French
files with different copies of the workbook. They have their regional
settings at English, but when they need to work on a French file they need
to
switch the Regional settings to get the currency format correct. I was
looking for a way to provide them with a macro so they could switch the
Decimal Symbol from within excel (without having to adjust the regional
settings) on a file by file basis.


If your users have Windows XP, then this might be helpful...

http://www.microsoft.com/windowsxp/u...rlanguage.mspx

I think you can do something similar in Vista too (but I don't have a link
for it).

Rick


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
Type a symbol useing shortcut keys rather the insert a symbol RJD Excel Discussion (Misc queries) 2 December 23rd 09 06:28 PM
Decimal symbol not converting tedmi Excel Discussion (Misc queries) 3 November 10th 08 08:08 PM
Decimal Symbol - point needed [email protected] Excel Discussion (Misc queries) 1 October 3rd 06 05:27 PM
Decimal Symbol [email protected] Excel Programming 2 December 29th 03 08:21 PM
Regional Options and Decimal symbol from VBA Henrik Wikström Excel Programming 1 August 2nd 03 04:01 AM


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