I'll look into content controls. I'm still SUPER new to VBA. I started out with a project to do one thing and it morphed and morphed from old 20 year old projects into this one. I have various things I want the different variables saved on each document to do. One of the reasons I wanted to be able to name a variable with another variable was to have a naming convention FOR the variables. So in the example Plaintiff's Exhibit 3, the variable saved to the document would be Plaintiff3, and the macro used to create this variable will "page stamp" the variable, showing the macro was used on the specific page because that is when something happened to Plaintiff's Exhibit 3. So the variable would be built like: Plaintiff3 = Admitted|T/F|Page|Marked|T/F|Page. So the T/F will be a true false call, the page will be the page it was addmited or the page it was marked.
But as I've said, the same parties and exhibit numbers will not always be on the same document. In different places in the document, the information will need to be pulled up.
So later in the document, when I need to write down when X happened to Plaintiff's Exhibit 3, I can pull from the variable of Plaintiff3 and have it express that it was Admitted on page 15 ad Marked on page 10 and so forth.
This is all legal document work. This is just one of the things I'm working to automate in a different way than I already have them automated. RIght now, I have a macro that creates a comment that holds the information and later something that calls the informaiton from all macros, but I was looking for an easier way to compare the data. So that if Plaintiff's 3 is seen on page page 5 and page 4, which would be two different comments, I wouldn't have two output lines, I would just get 1. Since I'm so new to VBA, my brain was not getting the logic of loop I would need to create to search all comments, compare all comments, combine them, then output them in the format I wanted them to do. SO, I came up with the idea of just creating an object on the document that would be named based on the exhibit itself, the function would later search all variables that coinside with the party.
The whole template I am creating has to be able to be simple use by anyone who has Word. They can't have to download different programs, or know how to install add-ons or anything like that. If it goes beyond checking a template box in Developer tab, it's too complicated for the end user. It also has to be a single document, so like, I can't have it call from other programs or online processes that would probably make life a lot easier.
As I've said, this is only ONE part of an entire template. Tracking, indexing, and using exhibits in a hearing. It will be used in written transcripts of hearings, so the typist has a slightly easier time of typing up their work.
|