|
-
Apr 17th, 2006, 10:38 AM
#1
Thread Starter
Lively Member
[RESOLVED] Word Fields, display Code Fields
I use word automation WOrdXP in may VB6 app.
I have a word doc open and i have to make sure i am in the field code display mode.
I know i can toggle with ALT-F9 and in code this can be done
with Appword.activeDocument.range.Fields.ToggleShowCodes
or i first select to whole doc content
Appword.activeDocument.Content.Select
Appword.selection.Fields.ToggleShowCodes
but this didn't work
Somehow i have to make sure i am in the Field code display mode
and no matter with mode the user's open doc is, beause he can use Alt F9 and change the mode, so i have to scheck the mode first.
Allso i tried selecting all the fields and then using
Appword.Selection.Fields(i).ShowCodes = True
Allso this didn't work
What am i doing wrong, can someone help
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|