Thread: [Solved] Find captions on Word
View Single Post
 
Old 12-14-2016, 10:12 AM
frank1028 frank1028 is offline Windows 10 Office 2016
Novice
 
Join Date: Dec 2016
Posts: 2
frank1028 is on a distinguished road
Default Find captions on Word

Hi everyone,

I am an amateur of VBA and have a problem that I have spent quite a while and still couldnt solve it, could anybody help me out please.

Problem:
I am using captions in Word to label charts and tables and have a list of figures which is generated by 'Insert table of Figures'.
E.g. The list of figures is on P.1, below is the list of figures that I have
Figure 1 ABC ... P.2
Figure 2 DEF ... P.3

What I would like to do is to have a VBA code that loops through the list and generates a message box during each step which includes the entire caption, e.g. For step 1, the message box would show 'Figure 1 ABC', for step 2, the message box would show 'Figure 2 DEF'. Please find attached a word document with the problem I described.

Thank you!

Please ask any questions, since I am not sure whether I have explained the problem clearly.
Attached Files
File Type: docx Sample.docx (14.7 KB, 20 views)
Reply With Quote