language dependent separators

S

Sebastian

We need to crate TOC with language dependent separators, to achieve this
we've created a macro, but we need a full list :

....cut...
Select Case System.CountryRegion
Case wdGermany, wdNetherlands
targetSeparatorChar = ";"
Case wdUS, wdUK, wdCanada, wdItaly
targetSeparatorChar = ","
Case wdOtherCountry
targetSeparatorChar = "???"
....cut...

I couldn't find such list....
Any helpful suggestions?
 
L

Lene Fredborg

You cannot be sure that all users have set the separator to the one that is
commonly used in the region in question. Instead, why not just find out which
one is actually set up and use that character (or you may have reasons for
not doing this…). For example:

targetSeparatorChar = Application.International(wdListSeparator)

--
Regards
Lene Fredborg - Microsoft MVP (Word)
DocTools - Denmark
www.thedoctools.com
Document automation - add-ins, macros and templates for Microsoft Word
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top