Thread: [Solved] Need Help with this Macro
View Single Post
 
Old 09-26-2018, 03:47 AM
gmayor's Avatar
gmayor gmayor is offline Windows 10 Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,144
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

That code has several issues, most notably the use of smart quotes in the code and the line

Code:
Selection.WholeStory.Font.Bold = wdToggle
is not a valid VBA command
I guess he meant
Code:
Selection.WholeStory
Selection.Font.Bold = wdToggle
I have not attempted to establish if the code actually does what you require as that remains vague.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote