I am very new to Visual Basic Programming...still doing a lot of Tutorials and reading books to learn what I can. But the best way to learn for me is to find a project and figure it out from the ground up....of course it helps to have tips or tutorials to help newbies like me.
So here is my suggestion for a tutorial:
Here is my task:
1. I need to automatically create a Table of Contents,Table of Figures, and Table of Tables in my Word documents. This would be easy to do if the document already had all the Figures or Table references indexed. But if the document is clean with no indexing done yet...then this leads me to issue two...
2. How can I create a macro or visual basic code that will go through an entire document and find all captions, Table, or figure references?
Examples:
Example1: Refer to Section 3.2.4 – Refer to text here.
Example2: Table 1 – Table text here.
Example3: Figure 18 – Figure text here.
These examples may be found scattered throughout the document.
I need to create VB code that will automatically find them, then highlight the caption found, create a new caption while removing the old.
Once the captions have been created, then the code needs to go through the word Document text and find references to the Caption Figures and Tables and create links pointing to the captions.
Finnally, the Table of Contents,Table of Figures, and Table of Tables can be automatically created.
I have some code already created, and am working on pieces of other code I think I need, but need to put it altogether and perhaps figure out in the tutorial the best way to go through this process in an orderly way as I am not exactly experienced and I don't really know what I am doing...
I hope this make sense, but I am certainly willing to detail further and post my code if needed. Since I am new I hope for a little direction here.
Thanks,
Russ