Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Regional Settings with VBA - Urgent


Hello,

I have an excel workbook that outputs a file with numbers an
currencies. Since this Workbook is used globally and each region ha
its own regional setting, specifically digit grouping and decima
symbols interchanged. On creation the output file, th
numbers/currencies contain the decimal & digit grouping symbols a
their regional settings. But the file needs to contain decimals as do
and digit grouping as comma.

Before outputting the file, can we check the regional settings and i
its different from what is required, then change it and once the fil
is created revert it.

Please let me know if its a good option and if not suggest bette
ones.

Thanks

--
novice200
-----------------------------------------------------------------------
novice2005's Profile: http://www.excelforum.com/member.php...fo&userid=1640
View this thread: http://www.excelforum.com/showthread.php?threadid=27775

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Regional Settings with VBA - Urgent

Hi
have a look at
application.international
in the VBA help

--
Regards
Frank Kabel
Frankfurt, Germany

"novice2005" schrieb im
Newsbeitrag ...

Hello,

I have an excel workbook that outputs a file with numbers and
currencies. Since this Workbook is used globally and each region has
its own regional setting, specifically digit grouping and decimal
symbols interchanged. On creation the output file, the
numbers/currencies contain the decimal & digit grouping symbols as
their regional settings. But the file needs to contain decimals as

dot
and digit grouping as comma.

Before outputting the file, can we check the regional settings and if
its different from what is required, then change it and once the file
is created revert it.

Please let me know if its a good option and if not suggest better
ones.

Thanks.


--
novice2005
---------------------------------------------------------------------

---
novice2005's Profile:

http://www.excelforum.com/member.php...o&userid=16406
View this thread:

http://www.excelforum.com/showthread...hreadid=277752


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Regional Settings with VBA - Urgent

can we check the regional settings and if its different from what is
required, then change it and once the file is created revert it.


I've tried this and never got it to work satisfactorily.

--
Jim Rech
Excel MVP
"novice2005" wrote in message
...

Hello,

I have an excel workbook that outputs a file with numbers and
currencies. Since this Workbook is used globally and each region has
its own regional setting, specifically digit grouping and decimal
symbols interchanged. On creation the output file, the
numbers/currencies contain the decimal & digit grouping symbols as
their regional settings. But the file needs to contain decimals as dot
and digit grouping as comma.

Before outputting the file, can we check the regional settings and if
its different from what is required, then change it and once the file
is created revert it.

Please let me know if its a good option and if not suggest better
ones.

Thanks.


--
novice2005
------------------------------------------------------------------------
novice2005's Profile:
http://www.excelforum.com/member.php...o&userid=16406
View this thread: http://www.excelforum.com/showthread...hreadid=277752



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Regional Settings with VBA - Urgent

You might want to write your own routine to write the files. Here is a
start at Chip Pearson's site:

http://www.cpearson.com/excel/imptext.htm

--
Regards,
Tom Ogilvy

"novice2005" wrote in message
...

Hello,

I have an excel workbook that outputs a file with numbers and
currencies. Since this Workbook is used globally and each region has
its own regional setting, specifically digit grouping and decimal
symbols interchanged. On creation the output file, the
numbers/currencies contain the decimal & digit grouping symbols as
their regional settings. But the file needs to contain decimals as dot
and digit grouping as comma.

Before outputting the file, can we check the regional settings and if
its different from what is required, then change it and once the file
is created revert it.

Please let me know if its a good option and if not suggest better
ones.

Thanks.


--
novice2005
------------------------------------------------------------------------
novice2005's Profile:

http://www.excelforum.com/member.php...o&userid=16406
View this thread: http://www.excelforum.com/showthread...hreadid=277752



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Regional Settings with VBA - Urgent

Hi Novice2005,

Before outputting the file, can we check the regional settings and if
its different from what is required, then change it and once the file
is created revert it.


In Excel 2002 and above, you can set the Application.DecimalSeparator
and Application.ThousandsSeparator appropriately, do your writing, then
set them back. These correspond to the Tools Options International
tab.

Regards

Stephen Bullen
Microsoft MVP - Excel
www.oaltd.co.uk


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 not using regional settings Dweezil38 Excel Discussion (Misc queries) 6 March 15th 11 08:50 AM
Regional settings Ana via OfficeKB.com Excel Worksheet Functions 1 October 27th 09 02:41 PM
regional settings Spike Excel Worksheet Functions 5 July 29th 07 01:10 AM
Regional Settings LAF Excel Discussion (Misc queries) 2 July 30th 05 12:51 PM
Changing Regional Settings from VBA Michael Rekas[_2_] Excel Programming 3 May 18th 04 09:05 AM


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