#1
|
|||
|
|||
Convert "Figure", "Figure", "Figure" to "Figure1", "Figure2", etc.
I have a report that I am working on and to avoid having to go back in and rename all of the figures manually to figure 2, figure 2, figure 3, etc, I have just named each figure as "Figure: <title>".
I was wondering if there was a way for me to make Microsoft Word automatically rename all of my figures to Figure 1, 2, etc. Given that there's ways to make macros and stuff, I'm hoping this won't be such a hard process. I have approximately 200+ figures and it'd be a pain to have to go back and rename all of these manually. Thanks for any help, Alton |
#2
|
|||
|
|||
Try autonumbering in the caption style? I realise this is a succinct pointer rather than a helpful explanation, but we can reasonably hope that someone who knows more about it will help if it's not enough :-}
|
#3
|
|||
|
|||
Here is a link that should help you:
http://www.iec.ch/standardsdev/resou...e/captions.htm Hope this helps... |
#4
|
||||
|
||||
Indeed, if you had used the Caption Style, it would have been a simple matter of Ctrl-A, F9.
For what you now have, you'll need a macro like: Code:
Sub Demo() Application.ScreenUpdating = False Dim i As Integer With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "Figure:" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False .Execute End With Do While .Find.Found i = i + 1 .Text = "Figure" & i & ":" .Collapse wdCollapseEnd .Find.Execute Loop End With Application.ScreenUpdating = True MsgBox i & " figures updated." End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
Ah, thanks man. I'm going to look into this once I've finished writing the report. Thanks again dude!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Making cross-reference say "Fig." instead of "Figure" | dgalb | Word | 17 | 11-09-2014 06:25 AM |
'Linking' entered information to other "cells" from an original "cell" in MS Word | Wade | Word | 6 | 09-03-2012 05:22 PM |
How to edit the "Format" and the "show level" of an EXISTING table of content? | Jamal NUMAN | Word | 2 | 08-14-2011 10:46 AM |
How to choose a "List" for certain "Heading" from "Modify" tool? | Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |
"Microsoft Excel Application" missing in the "Component Services" on win08 | sword.fish | Excel | 0 | 02-26-2010 02:09 PM |