Quote:
Originally Posted by treflip
Thanks a lot Jamal. I can get the macro to run in Paul's doc.
However the one in my doc correctly sets the captions but ends with a run-time error '91' Object variable or With block variable not set.
The debugger highlights:
.Words.First.Next.Style = "CaptionLabel"
Are you guys familiar with it?
|
As Paul has indicated, all what you need to do is to create a new style and name it “CaptionLabel”. See the attached screenshots
I’m wondering Paul if it is possible to develop the code so that it creates the “CaptionLabel” in case it is not there!
This style for caption is very academic and required by most of the institutions and worth to be built-in for the ease of the end users.
Best
Jamal