VBA Delete all the text in ActiveDocument Word VBA script -


My active document only contains text

I want to delete all the text in the active document and I want to set it on a stored text in a string.

e.g.

Fixed str = "bla bla bla ..." in the form of strings str. ActiveDocument.Selection Find out = ?? 'I do not know, because I just want to remove all texts. Install. Text = RR

Just overwrite the full text, I think it's working Should:

  dim string string str = "bla bla bla ..." ActiveDocument.Range.Text = str  

Comments