

- Microsoft word cross reference figure number only how to#
- Microsoft word cross reference figure number only pro#
- Microsoft word cross reference figure number only code#
Use the GetCrossReferenceItems method to return a list of item names that can be used with this argument.
Microsoft word cross reference figure number only code#
Because you don't click on any cells during the macro, it does not identify any specific location that it has to be in so it becomes a universal tool.Īn example of what the code would look like after you're done recording:ĪctiveCell.FormulaR1C1 = ", exactly, then this will work well for you.Ī. For all other ReferenceType values, this argument specifies the item number or name in the Reference type box in the Cross-reference dialog box. Then it knows to finalize theĪctive cell. Adding Citations to a Document To add and define citations for a document, you work with the commands in the Citations & Bibliography group on the References tab. The macro you recorded only sees to use the active cell and put the new string of info in. Word also updates cross-references so that the information they refer to, such as section headings or page numbers, is kept up to date automatically. Now, using your keyboard short cut you assigned, navigate to one of the cells that needs the exact same information and use the short cut. Click on the Check Park next to the formula bar to finalize the change to the cell. Type in the new line of information into the Formula bar.Ĥ. Use only the formula bar, do not click on any cells during the macro recording. Start recording macro, give it a short cut key if you like, for ease of using later.ģ. If you have already established chapters using Word’s headings, check Include chapter number to start with the chapter number. Click on one of the cells that need to be changed.Ģ.

You can record a new macro that will insert that information for you doing this:ġ.
Microsoft word cross reference figure number only how to#
Thread Title Cross-reference annoyances - How to make default lowercase first letter? How to get only the number? Once the ‘Table of Figures’ menu pops up, usually you would select either.
Microsoft word cross reference figure number only pro#
'If the selection has moved, we're in a fieldĪnother user, Ferrety2011, has replied to a thread you have subscribed to in the Word IT Pro Discussions Forum. To do this, find the place you want to insert the table, go to the ‘References’ tab in MS Word and click on ‘Insert Table of Figures’ (n.b., on Mac, go to ‘Insert’, ‘Index and Tables’, then ‘Tables and Figures’). 'Retry one character later, in case the selection was already at the start of the field 'Use ToggleShowCodes to move the selection if we're not already at the start of a field With hyperref, it's a replacement for \ref, the version that does not give you hyperlinks. Code.Text = Split(.Code.Text, "\h")(0) & "\# 0" & StrExtĪ = False For this to work, I obviously needed a technique to extract the naked sub (sub)section number from a reference, without any \hbox es, ull s, or anything other included. If InStr(.Code.Text, "\#") > 0 Then Exit Sub If InStr(.Code.Text, "\h") > 0 Then StrExt = " \h"

If InStr(.Code.Text, "\* lower") > 0 Then Exit Sub That makes the code much more complex, because Word provides no direct way of determining whether the selection is in a field:
