View Single Post
 
Old 08-07-2019, 09:29 AM
Charles Kenyon Charles Kenyon is offline Windows 10 Office 2016
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,125
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Quote:
Originally Posted by Swarup View Post
I created a copy of my file, and used the instructions in the link you provided for creating and running a macro. The macro got created properly, with no errors. When I then ran it, it gave me the following notice: "compile error: syntax error". And it is highlighting the following line, which it has put in red:

Code:
oRng Collapse wdCollapseStart

Change it to
oRng.Collapse wdCollapseStart
Reply With Quote