Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Exel data(schedule) linked to Europe map. Possible? | Excel Discussion (Misc queries) | |||
Marlboro...cigarettes...for $11.99. Delivery to USA & EUROPE HSk5AeJwQvlY | Links and Linking in Excel | |||
Comma format button decimals | Excel Discussion (Misc queries) | |||
How to remove comma and decimals from a value | Excel Discussion (Misc queries) | |||
Map of Europe & Airports | Charts and Charting in Excel |