Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-27-2016, 10:12 AM
package81 package81 is offline Figure numbering fix Windows 7 64bit Figure numbering fix Office 2010 64bit
Novice
Figure numbering fix
 
Join Date: Jun 2016
Posts: 1
package81 is on a distinguished road
Default Figure numbering fix

The figure numbering is messed up on my document because so many people have edited it incorrectly. Now every time I want to update it or insert a figure it is ridiculous what I have to do. So instead of trying to figure out what is wrong, I would like to do this: I have removed the figure numbering and the captions from the document. So now my document has un-labeled figures. I have the captions text still, but they are not numbered. It is just a plain-text list. This is what I want to do:



loop through the pictures in my document (and the caption text list) and add an official caption to each picture that just says "Figure x: <caption x text>"

basically, I have 200 pictures, and a corresponding list of 200 captions. I want the captions to be numbered and placed as official numbered captions on the pictures.

and I also want to be able to generate a dynamic figure table of contents based on the figures. by dynamic, I just mean it is generated from the actual figures/captions in the document and has the correct page number, and can be clicked to jump to the actual figure.

I will then protect the document with my life and be the only one allowed to update it. I will update it correctly so that everything updates cleanly.

Please help me. I am actually a programmer but I don't know the first thing about VBA. Please include where I should place the captions list, and then the code to access it and loop through it
Reply With Quote
  #2  
Old 06-27-2016, 06:35 PM
Guessed's Avatar
Guessed Guessed is offline Figure numbering fix Windows 10 Figure numbering fix Office 2013
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,969
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

You didn't specify where the caption text was going to be found so that task may be manual. To automate adding a caption to all Inline Shapes you could run the code here https://sukhbinder.wordpress.com/201...word-document/
This code won't find any floating pictures (those with text wrapping) so you'll have to post back if this is a problem for you.
Once the "captions" are in place, you will need to put the 'caption text' into those paragraphs.
The Table of Figures can then be inserted anywhere you like. This is a simple field but you can insert it without vba since it is a one-off. Go to References > Insert Table of Figures
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong numbering in Figure/Tables' captions Shauheen Word 6 06-13-2017 12:07 PM
Figure numbering fix Figure and Table Numbering Format Change hojkoff Word 3 06-18-2013 01:57 AM
MS Word figure caption numbering skaboy607 Word 3 03-21-2012 02:31 PM
Figure numbering fix Correct figure auto-numbering JFax Word 1 05-08-2011 09:46 PM
Changing Figure Numbering Fields 0-1, 0-2, 0-3 chrishart7 Word 0 09-03-2010 12:59 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:12 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft