Thread
:
Trouble converting a sub to function, incl. passing argument and nixing Selection
View Single Post
08-18-2021, 11:53 PM
gmayor
Windows 10
Office 2019
Expert
Join Date: Aug 2014
Posts: 4,106
On reflection, if the title in question is the whole of the first paragraph you can use
the following to call the sub.
Code:
Sub FormatTitle() TrueTitleCase ActiveDocument.Paragraphs(1).Range End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes
www.gmayor.com
gmayor
View Public Profile
Find all posts by gmayor