
Signature
--Thomas [PBD]
Working hard to make working easy.
Answered your question? Click ''Yes'' below.
As I said, the problem is visible when you go and change the defult value -
so let's say you set it to GB - you have there the default delimiter ",". Now
go and customize this by changing this value to ";". In that case Excel will
ignore your change - so Excel is (at least for any PC I went on checking)
ignoring my customization. This is a problem to me because I have to fill in
programatically some formulas and I came upon some customers having this
customized.
If you only change the country then Excel reacts promptly and changes the
delimiter also for all open onscreen documents.
So if this is a feature or a BUG is an info I would really need to react
propperly.
Is there maybe a way of detecting which is the delimiter that Excel will use
by asking Excel (so without the need of checking the regional settings)?
Best regards,
Leo
> Leo,
>
[quoted text clipped - 4 lines]
> could not get the program to ignore the ;. Have you ensured that your
> regional settings are set to where you want them?
Ron Rosenfeld - 09 Oct 2008 17:39 GMT
>Is there maybe a way of detecting which is the delimiter that Excel will use
>by asking Excel (so without the need of checking the regional settings)?
application.International(xllistseparator)
--ron
Leo Mazzi - 10 Oct 2008 10:15 GMT
thank you for the tip. I actually generate the output from C# code so my
solution would be:
string listSeparator = (string) Application.get_International(0x00000005);
I use the hardcoded value for xlListSeparator because seems that there is no
representation of it in the Excel.Constants enum.
> >Is there maybe a way of detecting which is the delimiter that Excel will use
> >by asking Excel (so without the need of checking the regional settings)?
>
> application.International(xllistseparator)
> --ron
Ron Rosenfeld - 10 Oct 2008 11:23 GMT
>thank you for the tip. I actually generate the output from C# code so my
>solution would be:
[quoted text clipped - 3 lines]
>I use the hardcoded value for xlListSeparator because seems that there is no
>representation of it in the Excel.Constants enum.
Glad to help.
Thanks for the feedback.
--ron
Thomas [PBD] - 09 Oct 2008 18:13 GMT
Leo,
I guess you have to check two places to ensure that the List Separator is
enabled as a comma. First place, one that I am pretty sure you have checked:
Start>Settings>Control Panel>Regional and Language
Options>Country>Customize>Number>List Separator. The second place, inside of
Excel itself: Tools>Options>International>Use System Separators Checkbox.
Thirdly, you can reference this page for additional information on setting
the computer registry.
http://geekswithblogs.net/robz/archive/2008/07/09/windows-xp-hack-how-to-use-a-p
ipe-quotquot-delimiter.aspx

Signature
--Thomas [PBD]
Working hard to make working easy.
Answered your question? Click ''Yes'' below.
> As I said, the problem is visible when you go and change the defult value -
> so let's say you set it to GB - you have there the default delimiter ",". Now
[quoted text clipped - 24 lines]
> > could not get the program to ignore the ;. Have you ensured that your
> > regional settings are set to where you want them?
Leo Mazzi - 10 Oct 2008 10:18 GMT
Thanks Thomas but I do the fill in programatically without the possibility to
go trough the GUI interface. Actually Ron's solution gave me a good tip how
to do it in a fast way (one line of code).
in addition Options>Country>Customize>Number>List Separator defines the
decimal and the thousands separators not the list separator.
best regards,
Leo
> Leo,
>
[quoted text clipped - 36 lines]
> > > could not get the program to ignore the ;. Have you ensured that your
> > > regional settings are set to where you want them?