Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Can a macro be assined to create a cross reference to a bookmark?
I need to create several cross references to bookmarks in a fillable form.
Instead of selecting Insert Reference Cross reference Bookmark everytime, can I create a macro to do these steps for me, and then manually select the bookmark? |
#2
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Can a macro be assined to create a cross reference to a bookmark?
The following works for me in Word 2003 and should also work in most earlier
versions: Sub InsertXRef Dialogs(wdDialogInsertCrossReference).Show End Sub Where you place this code is a matter of choice and depends on the context in which you want this macro to be available. If you want to use it in any document you create, add it to the Normal template (or to a template saved in Word's Startup folder). If you want it only for specific documents, put it in the template on which those specific types of document are based - assuming that they are based on a certain template and not just the Normal. You can also assign this macro to a button on a custom toolbar or one that you add to a built-in toolbar. The process for doing this is covered in the Word Help topics on macros. -- Cheers! Gordon Bentley-Mix Word MVP Please post all follow-ups to the newsgroup. Read the original version of this post in the Office Discussion Groups - no membership required! "gremillion1" wrote: I need to create several cross references to bookmarks in a fillable form. Instead of selecting Insert Reference Cross reference Bookmark everytime, can I create a macro to do these steps for me, and then manually select the bookmark? |
#3
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
Can a macro be assined to create a cross reference to a bookma
In addition to Gordon's comments, you can also assign a keyboard shortcut to
active the Insert Crossreference dialog. So if you don't like/know macros this is another option. Hope the helps DeanH "Gordon Bentley-Mix at news.microsoft.com" wrote: The following works for me in Word 2003 and should also work in most earlier versions: Sub InsertXRef Dialogs(wdDialogInsertCrossReference).Show End Sub Where you place this code is a matter of choice and depends on the context in which you want this macro to be available. If you want to use it in any document you create, add it to the Normal template (or to a template saved in Word's Startup folder). If you want it only for specific documents, put it in the template on which those specific types of document are based - assuming that they are based on a certain template and not just the Normal. You can also assign this macro to a button on a custom toolbar or one that you add to a built-in toolbar. The process for doing this is covered in the Word Help topics on macros. -- Cheers! Gordon Bentley-Mix Word MVP Please post all follow-ups to the newsgroup. Read the original version of this post in the Office Discussion Groups - no membership required! "gremillion1" wrote: I need to create several cross references to bookmarks in a fillable form. Instead of selecting Insert Reference Cross reference Bookmark everytime, can I create a macro to do these steps for me, and then manually select the bookmark? |
Reply |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Cross-reference to bookmark below outline-numbered heading | Microsoft Word Help | |||
How to create a cross-reference to a footnote | Microsoft Word Help | |||
cross-reference doesn't show graphic in bookmark | Microsoft Word Help | |||
Cross-reference macro? | Microsoft Word Help | |||
cross reference bookmark | Microsoft Word Help |