Thanks for your help, and I will look into the key terms. Could you give me a bit more background on the logical/technical errors that are within my code (for future reference)? As for what I want to happen, here are the basics:
1. If bold text is not found within a row, then it moves onto the next row.
2. If bold text is found, the code checks it against a predefined list of names.
3. If the bold text is within the predefined list of names, then it moves into the next row.
4. If the bold text is not in the list of predefined names, then the program checks to see if bold text with the predefined names appears after the non-predefined bold text.
5. If bold text does not appear after the non-predefined bold text, then it selects and copies everything from the beginning of the bold text to the end of the table.
6. If bold text with one of the predefined names appears after the non-predefined bold text, then the program would preferably select and copy all the rows in between the two bold rows (including the row with the non-predefined bold text), or else return a msg box that says something along the lines of "there is an extra category within the document".
Hopefully that wasn't too confusing.
EDIT 1:
I ran your code through my computer, but it crashed word. It could be that my computer isn't powerful enough to successfully run the code...thoughts?
|