Actually caption label Picture is set to croatian word "Slika" and when I need to say say "in the picture" I can't because it would be "na Slici 5." and not "na Slika 5." (like Word would make me do). Locate and then select the bookmark name that matches the bookmark name that you noted in step 1.
In the Bookmark dialog box, click to select the Hidden bookmarks check box. I have the following code to insert an updating, hyperlinked cross-reference in place of a user-typed plain text number referring to a previous list item: Selection. On the Insert tab, in the Links group, click Bookmark. The document is written in Croatian language which has 7 declension cases, so using "Picture 4" would not be valid in all cases. Locate and select the outline numbered heading to which the cross-reference should point. Is there any way to make Word 2007 insert a reference to only Caption Number? What I need is a reference that would be inserted like this:, and not like this: None of these options enable me to do it. This opens the cross-reference dialog where I can set Reference type to Picture.įor "Insert reference to", there are 5 choices: - Entire caption I don't want to lose the order so I am using Insert -> Cross-reference. For all other ReferenceType values, this argument specifies the item number or name in the Reference type option in the Cross-reference dialog box. ReferenceItem: Required: Variant: If ReferenceType is wdRefTypeBookmark, this argument specifies a bookmark name. Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.I have many pictures in a document and I reference them very often in text. The information to be included in the cross-reference. ReferenceKind:=wdPageNumber, ReferenceItem:=myBookmarks(1)
InsertCrossReference ReferenceType:=wdRefTypeBookmark, _ GetCrossReferenceItems(wdRefTypeBookmark) Set myRange = ActiveDocument.Range(Start:=0, End:=0) This example inserts at the beginning of the active document a cross-reference to the page that includes the first bookmark in the document. If you specify wdPageNumber for the value of ReferenceKind, you may need to repaginate the document to see the correct cross-reference information. Specifies the string to use as a separator if the SeparateNumbers parameter is set to True. Microsoft Word makes it much easier to do. (Use only if the ReferenceType parameter is set to wdRefTypeNumberedItem and the ReferenceKind parameter is set to wdNumberFullContext.) Cross-referencing is an imposing name for something we're all familiar with in books, especially reference books. True to use a separator to separate the numbers from the associated text. True to insert "above" or "below," depending on the location of the reference item in relation to the cross-reference. True to insert the cross-reference as a hyperlink to the referenced item. Use the GetCrossReferenceItems method to return a list of item names that can be used with this argument. If ReferenceType is wdRefTypeBookmark, this argument specifies a bookmark name. Index and Tables command and choose the type of captions you want listed as. of tables, figures etc in your document) with their numbers, titles and page numbers. Finally, MS Word can automatically produce a list of captions (e.g. The information to be included in the cross-reference. Cross-references are updated automatically (and what a pain it would be to do this manually). Can be any WdReferenceType or WdCaptionLabelID constant or a user defined caption label. Now, we have Figure inserted in the text. In the dialog box, select Figure as Reference type, then select Only label and number, pick Figure 1, click Insert. In the Reference type box, click the drop-down list to pick what you want to link to. How do I insert a figure reference in Word Click on Insert -> Reference -> Cross-reference. For example, 'See Figure 2 for an explanation of the upward trend.' On the Insert tab, click Cross-reference. The type of item for which a cross-reference is to be inserted. In the document, type the text that begins the cross-reference. A variable that represents a Range object. InsertCrossReference( _ReferenceType_, _ReferenceKind_, _ReferenceItem_, _InsertAsHyperlink_, _IncludePosition_, _SeparateNumbers_, _SeparatorString_ )Įxpression Required.
Inserts a cross-reference to a heading, bookmark, footnote, or endnote, or to an item for which a caption label is defined (for example, an equation, figure, or table).