View Single Post
 
Old 01-29-2021, 05:33 AM
TA9523 TA9523 is offline Windows 10 Office 2016
Novice
 
Join Date: Jan 2021
Posts: 8
TA9523 is on a distinguished road
Default

Quote:
Originally Posted by gmayor View Post
Code:
Set oRng = oDoc.Range With oRng.Find
should be
Code:
Set oRng = oDoc.Range 
With oRng.Find
as shown in the listing.
In this case following error occur:
"compile error" - Argument not optional
Reply With Quote