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

I did everything how you wrote, the same error" Argument not optional" occurred on line
Quote:
With oRng.Find
. Just for information after that google it and find solution to change line
Quote:
Dim oRng As Range
to this line
Quote:
Dim oRng As Word.Range
And everything work correctly, but it shows for all documents "no matches", although I checked in these documents there are suitable words. Just for note except adding "Word.Range" to line "Dim ORng" I did not do any changes in code and copy everything correctly.(Sorry for bad English and thanks in advance)
Reply With Quote