issue with captions

A

Associates

Hi,

I am having troubled with the caption in word doc. I have created 2
autotexts, one for Figure and the other one for Table.

e.g. Figure 1.1 blah blah

The problem here is that say, we have inserted a few figures to the report
as follows

Chapter 1 Introduction
blah 1
blah 2
some pic.
Figure 2.1 my picture
blah 3
....

and save it. Then, a few days later, when i come back to the report, i
realise i need to add a picture just after "blah 2"

Chapter 1 Introduction
blah 1
blah 2
Figure 2.1 My New Picture
some pic.
Figure 2.1 my picture
blah 3
....

As you can see, the Figure number is wrong. It does not update the rest of
the captions after. It works fine if you insert one after another. The
problem arises when you insert another caption right before other captions
especially when they are already there

The way i inserted the autotexts is via macro as shown below

NormalTemplate.AutoTextEntries("inserttable").Insert Where:=Selection. _
Range, RichText:=True

Is this to do with updating captions just the same way as updating TOC?

Your help would be greatly appreciated.

Thank you in advance
 
R

Rob

Captions always update for me, but since they don't for you, you might try
updating them like a field (becaus that's what they are).

In the code
ActiveDocument.Fields.Update

or from the document select them and hit F9.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top