View Single Post
 
Old 06-16-2012, 10:00 AM
Jamal NUMAN Jamal NUMAN is offline Windows 7 64bit Office 2010 64bit
Expert
 
Join Date: Nov 2010
Posts: 525
Jamal NUMAN is on a distinguished road
Question

Quote:
Originally Posted by treflip View Post
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
Attached Images
File Type: jpg Clip_194.jpg (120.7 KB, 54 views)
File Type: jpg Clip_195.jpg (141.5 KB, 49 views)
__________________
Jamal NUMAN, Jamal432@gmail.com, P.O.BoX: 731, Ramallah, West Bank.
Reply With Quote