This is a trick I use to achieve your goal. uidoc is the uidocument object of the sub document. docApp is the main document.
Call ws.ViewRefresh
Call uidoc.Close(True)
Set uidoc=ws.EditDocument(True, docApp, False, ,True , False)
‘You can modify the main doc via a new uidoc or its Document property now.