B
Bear
[Word 2000 on Windows XP]
This is about creating page number prefixes of the form C.9, where C is the
SEQ nubmer of the chapter. I can do it all manually through the UI, but I'm
trying to do it programatically.
I can iterate through the fields collection in each header and footer and
find any PAGE fields, BUT I can't figure out how to establish a range object
that lets me insert stuff just before this field.
objRange = objField.Result just doesn't work reliably -- things get
inserted in the middle of the field code, when they get inserted at all. It
works when you use selections in the active document, but not when you use
range objects.
Any clues?
Bear
This is about creating page number prefixes of the form C.9, where C is the
SEQ nubmer of the chapter. I can do it all manually through the UI, but I'm
trying to do it programatically.
I can iterate through the fields collection in each header and footer and
find any PAGE fields, BUT I can't figure out how to establish a range object
that lets me insert stuff just before this field.
objRange = objField.Result just doesn't work reliably -- things get
inserted in the middle of the field code, when they get inserted at all. It
works when you use selections in the active document, but not when you use
range objects.
Any clues?
Bear