Thread
: [Solved]
Count number of periods and convert paragraph to a heading style
View Single Post
10-19-2019, 01:11 PM
gmaxey
Windows 10
Office 2016
Expert
Join Date: May 2010
Location: Brasstown, NC
Posts: 1,598
In the code I sent, I think you can nix the oParRng.Select line (was for test).
You should be able to tinker with this line:
oParRng.End = oParRng.End - 1
Perhaps oParRng.End = oParRng.End + 1 'or maybe 2 to get it to work.
__________________
Greg Maxey
Please visit my web site at
http://www.gregmaxey.com/
gmaxey
View Public Profile
Find all posts by gmaxey