none
Cannot edit subdocuments fromshared drive programatically after upgrading office 365 1800+ or later builds RRS feed

  • Question

  • Dim koword As Object = New Word.Application()
    Dim Doc1 As Word.Document
    Doc1.Subdocuments.AddFromFile("somepath")
    Doc1.Subdocuments.AddFromFile("somepath2")
    Call Doc1.Subdocuments.Merge(FirstSubdocument:=oDocument.Subdocuments.Item(1), LastSubdocument:=oDocument.Subdocuments.Item(2))

    The Merge works fine when the two subdocs are within the local machine but fails when the docs are from a network shared drive.

    It works fine for 1700 builds or lower version of word.

    err:you cannot change a locked subdocument or master document.

    Tuesday, October 22, 2019 3:51 AM

All replies