Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default decimals: in Europe they use a comma

I've made a UserForm that lists the first 10 column widths and allows me to
modify them by inputting numerical values.
I'm in Italy so Excel as standard shows me the decimal divider as a comma,
not a point. On my form the 10 current widths are displayed correctly with
commas but if I try setting widths (or resetting the widths as they were
before I opened the form), any values with decimals generate a VBA error. It
must be because VBA isn't international so punctuation is US/UK.
Do I have to incorporate a spell-checking routine just to see if there are
any commas in 10 label captions and 10 textbox texts, before sending the data
from the form or is there a quicker way ?

--
WinXP - Office2003 (Italian)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default decimals: in Europe they use a comma

Sounds like you need to Internationalize your app and parse as text values
necessary

Dim sDecSep As String
sDecSep = Application.International(xlDecimalSeparator)

Look at International in help for more

Regards,
Peter T



"David Macdonald" wrote in
message ...
I've made a UserForm that lists the first 10 column widths and allows me
to
modify them by inputting numerical values.
I'm in Italy so Excel as standard shows me the decimal divider as a comma,
not a point. On my form the 10 current widths are displayed correctly with
commas but if I try setting widths (or resetting the widths as they were
before I opened the form), any values with decimals generate a VBA error.
It
must be because VBA isn't international so punctuation is US/UK.
Do I have to incorporate a spell-checking routine just to see if there are
any commas in 10 label captions and 10 textbox texts, before sending the
data
from the form or is there a quicker way ?

--
WinXP - Office2003 (Italian)



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default decimals: in Europe they use a comma

Thanks for the hint, Peter.
Unfortunately the Application, Excel, is internationalised.
It looks as if the VBA Editor doesn't follow the main app - probably
connected to often-encountered problem of date formats. I think VBA is
strictly US.
--
WinXP - Office2003 (Italian)


"Peter T" wrote:

Sounds like you need to Internationalize your app and parse as text values
necessary

Dim sDecSep As String
sDecSep = Application.International(xlDecimalSeparator)

Look at International in help for more

Regards,
Peter T



"David Macdonald" wrote in
message ...
I've made a UserForm that lists the first 10 column widths and allows me
to
modify them by inputting numerical values.
I'm in Italy so Excel as standard shows me the decimal divider as a comma,
not a point. On my form the 10 current widths are displayed correctly with
commas but if I try setting widths (or resetting the widths as they were
before I opened the form), any values with decimals generate a VBA error.
It
must be because VBA isn't international so punctuation is US/UK.
Do I have to incorporate a spell-checking routine just to see if there are
any commas in 10 label captions and 10 textbox texts, before sending the
data
from the form or is there a quicker way ?

--
WinXP - Office2003 (Italian)




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
Exel data(schedule) linked to Europe map. Possible? Kevin Clark[_2_] Excel Discussion (Misc queries) 0 September 19th 07 10:00 AM
Marlboro...cigarettes...for $11.99. Delivery to USA & EUROPE HSk5AeJwQvlY Chris O. Lewis Links and Linking in Excel 0 August 12th 07 11:50 AM
Comma format button decimals Steve Ruiter Excel Discussion (Misc queries) 0 November 30th 05 06:51 PM
How to remove comma and decimals from a value Send Object Command - Two attachments Excel Discussion (Misc queries) 2 November 10th 05 11:13 PM
Map of Europe & Airports marylujay Charts and Charting in Excel 0 March 14th 05 11:35 PM


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