I want to retrieve the heading that the active range is located in. For instance if I highlight a word under heading "3.2.1 Conclusions", I want a macro to assign "3.2.1 Conclusions" to a variable.
Thanks,
Smed
fumei,
When I make an example similar to what you describe, it works fine, but if I add a table with caption "Table" before the 3 figures, the code gets stuck in the while loop.
This still causes c to equal 44 when I step through the code and 8 when I run the code.
I'm using word 2003 but this is how the figures are being defined:
With CaptionLabels("Figure")
.NumberStyle = wdCaptionNumberStyleArabic
.IncludeChapterNumber = True...
Hi, i'm trying to create a listbox that holds all "Figure" cross references in it. The problem is that when I run the following code, it will only store a maximum of 8 figures. The strange thing is that if I step through the code line by line, it will store all 44 figures. I can't figure out why...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.