VB-AN-IZ
11-01-2015, 02:27 PM
One macro I use results in words at the start of some sentences being uncapitalized. (Long story, but it's ultimately a good thing.)
I can modify those uncapitalizations without applying a macro, using these steps, but I don't know how to replicate step four with a macro:
1) Ctrl + H to open 'Find and Replace', then select 'Find' tab
2) Check 'Use Wildcards'
3) Find '. [a-z]'
4) Find In > Main Document
5) Close 'Find and Replace'
6) Shift + F3
Assuming there's a way to highlight all the lower-case letters following a full stop and space, I'm pretty sure the next step involves something like:
Selection.FormattedText.Case = wdTitleWord
Sorry, bit of a novice; I'm mostly learning by recording keystrokes and analyzing afterwards, but by now I'm reduced to trial-and-error. Can't seem to get my brain around VBA's ranges.
Any help's much appreciated.
I can modify those uncapitalizations without applying a macro, using these steps, but I don't know how to replicate step four with a macro:
1) Ctrl + H to open 'Find and Replace', then select 'Find' tab
2) Check 'Use Wildcards'
3) Find '. [a-z]'
4) Find In > Main Document
5) Close 'Find and Replace'
6) Shift + F3
Assuming there's a way to highlight all the lower-case letters following a full stop and space, I'm pretty sure the next step involves something like:
Selection.FormattedText.Case = wdTitleWord
Sorry, bit of a novice; I'm mostly learning by recording keystrokes and analyzing afterwards, but by now I'm reduced to trial-and-error. Can't seem to get my brain around VBA's ranges.
Any help's much appreciated.