![]() |
#2
|
||||
|
||||
![]()
Firstly, your code has an objShape which looks like it should be an iShape
The code is looking at the first field in the paragraph below the inline shape. Can you confirm that the first field is a sequence field because it could also be a styleref field (if your captions include the chapter number). This might need adjustment to dig further to decide whether a 'caption' already exists there. You could test for a style or look through all fields in that paragraph for instance
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
Tags |
caption inline shapes, field code caption, inline shapes |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
seanspotatobusiness | Word | 25 | 08-06-2018 05:00 PM |
Table of Contents causes error when checking style | NevilleT | Word VBA | 14 | 05-02-2018 01:23 AM |
Trying to figure out this code | sharpied | Word | 0 | 07-27-2016 12:09 PM |
![]() |
jlw15931 | Mail Merge | 1 | 02-24-2015 05:03 AM |
Can Word automatically update figure numbers? | gib65 | Word | 7 | 02-22-2013 05:52 AM |