Is it possible to alter a marked field´s field function with Word 2007 VBA?
Posted
by Richard
on Stack Overflow
See other posts from Stack Overflow
or by Richard
Published on 2009-06-17T16:05:33Z
Indexed on
2010/04/02
5:03 UTC
Read the original article
Hit count: 342
Hi,
i want do the following:
In Word 2007 place the Cursor on a field (or mark that field) and call a macro wich edit the field function of that field. (add some string).
I´m even grateful for some tipps what term to google.
I used the macro recorder and got following:
WordBasic.FormatField Field:="CITATION Gro05 \p 9 \l 1031"
Thats obvious creats a new field but where to go from here?
To get the selected field i thought about something like this:
If Selection.Type = WdFieldType Then ...
I hope someone give me some hints :) Bye Richard
© Stack Overflow or respective owner