DEV Community

Oscar Sun(孫守真字任真)
Oscar Sun(孫守真字任真)

Posted on

Answer: VBA, setting a range in a Word document to edit a specific section of text

I initially tried to assign myRange without setting it first.

it just had to be initialized to a range other than Nothing.

Using Word.Range object, you have to initiate it by Set that object to a range in a document first, just like what you said:

I have tried to…

Top comments (0)