Hello again,
I received great success with a previous post on Word VBA, so I am moving to my next inquiry.
Is it possible for Word VBA to scan a document and highlight the following scenario:
-A bullet cannot stand alone as an individual set, regardless of sub-bullets
The goal here is to capture throughout a document any scenario where a bullet at any level within the bullet chain does not have a subsequent bullet. An example is provided below of what to capture.
Edit/Note: Due to constraints in the forum font formats, the sub bullets in the examples below should be seen as "a./b." per directions in bold, I've added them in parenthesis for better identification.
In this example, the first level of bulleting is invalid because "1." is not followed by a "2.", the sub bullets are acceptable because "a." is followed by a "b." but the entire section is still invalid because the parent bullet holds the error.
In this example, the first level of bulleting is valid because "1." is followed by a "2.", however; the second level of bulleting is invalid because the "a." stands without a "b." and should be called out similarily.
I am betting that I am being optimistic here, but hoping that it's a simple effort to somehow script in VBA "If ever a bullet is orphaned, I.E. stands alone without a subsequent bullet, capture the bullet with a highlight marking".
Additionally, is it possible to address the formatting of these bullets? There are strict guidelines where the user can only use the following structure for bulleting:
The user is restricted from use of fancy bullet objects, roman numerals, upper-case lettering, and all other means. The only exception to this are open/closed bullets if being used for various lists that have no chronological order.
Thank-you for any assistance!
Edit: Using Microsoft Word 2010
I received great success with a previous post on Word VBA, so I am moving to my next inquiry.
Is it possible for Word VBA to scan a document and highlight the following scenario:
-A bullet cannot stand alone as an individual set, regardless of sub-bullets
The goal here is to capture throughout a document any scenario where a bullet at any level within the bullet chain does not have a subsequent bullet. An example is provided below of what to capture.
Edit/Note: Due to constraints in the forum font formats, the sub bullets in the examples below should be seen as "a./b." per directions in bold, I've added them in parenthesis for better identification.
In this example, the first level of bulleting is invalid because "1." is not followed by a "2.", the sub bullets are acceptable because "a." is followed by a "b." but the entire section is still invalid because the parent bullet holds the error.
- This is the main sentence
- (a.) Followed by a sub sentence
- (b.) Followed by another sub sentence
For the above example, I would just like the parent bullet to be highlighted and let the user address the corrections, like so (text is highlighted in example, but I aim to use the background highlight function in Word):
- This is the main sentence
- (a.)Followed by a sub sentence
- (b.)Followed by another sub sentence
In this example, the first level of bulleting is valid because "1." is followed by a "2.", however; the second level of bulleting is invalid because the "a." stands without a "b." and should be called out similarily.
- This is another scenario
- (a.) Where this is wrong
- However, 1 and 2 are okay
So in this example, the bullet of "a." would need to be called out, while the parent bullets remain undeteced.
- This is another scenario
- (a.) Where this is wrong
- However, 1 and 2 are okay
I am betting that I am being optimistic here, but hoping that it's a simple effort to somehow script in VBA "If ever a bullet is orphaned, I.E. stands alone without a subsequent bullet, capture the bullet with a highlight marking".
Additionally, is it possible to address the formatting of these bullets? There are strict guidelines where the user can only use the following structure for bulleting:
- Numerical value followed by period
- (a.) Lower-case letter followed by period
- Numerical value followed by period
- (a.) Lower-case letter followed by period
Thank-you for any assistance!
Edit: Using Microsoft Word 2010
Last edited: