R
Ryan G
Hi everyone,
Having some issues where every revision generates a new value for the the
styleref
here are the relevant info:
- we have a StyleRef field in the document Header (say { STYLEREF "Heading
1" } or that with (\* MERGEFORMAT) will still yield the same issue)
- a text (ie. Test) with style = Heading 1
- a bookmark wrapping the text above (Test)
i) turn protection on but sets the bookmark range as editable (usually
indicated by a yellow highlight)
ii) have some codes to turn track changes on after turning protection ON
(using C#-VSTO or VBA - either of which would still produce the issue)
Set focus to the bookmark and made some changes. Notice that for every
change/keystroke in the reference text, a new value is generated in
associated Header field.
Normally, track changes button and menu item is disabled once protection is
off that suggests that working with track changes while protection is
something fishy but as Word allows conditional protection it should not have
been a problem.
I was thinking of using Locked property of the styleref field but it has
another issue of ignoring the strikethroughs when the field value is updated.
Your comments would be very much helpful and appreciated.
Ryan
Having some issues where every revision generates a new value for the the
styleref
here are the relevant info:
- we have a StyleRef field in the document Header (say { STYLEREF "Heading
1" } or that with (\* MERGEFORMAT) will still yield the same issue)
- a text (ie. Test) with style = Heading 1
- a bookmark wrapping the text above (Test)
i) turn protection on but sets the bookmark range as editable (usually
indicated by a yellow highlight)
ii) have some codes to turn track changes on after turning protection ON
(using C#-VSTO or VBA - either of which would still produce the issue)
Set focus to the bookmark and made some changes. Notice that for every
change/keystroke in the reference text, a new value is generated in
associated Header field.
Normally, track changes button and menu item is disabled once protection is
off that suggests that working with track changes while protection is
something fishy but as Word allows conditional protection it should not have
been a problem.
I was thinking of using Locked property of the styleref field but it has
another issue of ignoring the strikethroughs when the field value is updated.
Your comments would be very much helpful and appreciated.
Ryan