Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Numbering / June 2004

Tip: Looking for answers? Try searching our database.

Field numbering problem related to different French/English list separator

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen Boyd - 26 Jun 2004 16:31 GMT
I am trying to use field codes to avoid having different odd/even page
headers and footers.
The fields I'm using are
{IF {=MOD({PAGE} , 2 )} = 1 {PAGE}}, which gives the page number on an odd
page and nothing on an even page
and
{IF {=MOD({PAGE} , 2 )} = 0 {PAGE}}, which gives the page number on an even
page and nothing on an odd page
Using Word 97 (English UK version) on computers running Windows NT with
either English or French regional settings.
On the French computers these fields give a syntax error as it seems to want
a semicolon in place of the commas.
Is there any way of writing a field that works on both sets of computer, or
is there some other workaround?
Jean-Guy Marcil - 26 Jun 2004 17:00 GMT
Bonjour,

Dans son message, < Stephen Boyd > ?crivait :
In this message, < Stephen Boyd > wrote:

|| I am trying to use field codes to avoid having different odd/even page
|| headers and footers.
|| The fields I'm using are
|| {IF {=MOD({PAGE} , 2 )} = 1 {PAGE}}, which gives the page number on an
odd
|| page and nothing on an even page
|| and
|| {IF {=MOD({PAGE} , 2 )} = 0 {PAGE}}, which gives the page number on an
even
|| page and nothing on an odd page
|| Using Word 97 (English UK version) on computers running Windows NT with
|| either English or French regional settings.
|| On the French computers these fields give a syntax error as it seems to
want
|| a semicolon in place of the commas.
|| Is there any way of writing a field that works on both sets of computer,
or
|| is there some other workaround?

The only way I can think of is to have a macro in the Document_New procedure
that would build the field code with the appropriate list separator. If you
wanted to be fancy you could also include the same procedure in the
Document_Open procedure so that the document would display the correct
information, even when transferred from a French to English computer.

In your procedure use
   MsgBox Application.International(wdListSeparator)
to find out what the current list separator is.

Have never tried it, but it sounds like it would work!
The tricky part is to create the embedded fields programmatically. A
workaround would be to have two autotexts, a French and an English version,
then, depending on the result of your
   Application.International(wdListSeparator)
test, insert the appropriate autotext

Good luck.

Signature

Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org

Stephen Boyd - 27 Jun 2004 17:58 GMT
Thanks! that's very helpful

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.