“You are not allowed to edit this selection because it is protected.” but only since Office 2013?

后端 未结 8 1631
我寻月下人不归
我寻月下人不归 2021-02-19 20:07

We\'ve had these few lines of code running happily in our applications for several years (and in several versions of Office, 2003, 2007, 2010 etc). Purpose is to perform a kind

8条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-19 20:29

    You don't specify how the document is opened, but a problem I had was resolved by following the answer accepted on this question.

    Switching from WordApplication.Documents.Open() to WordApplication.Documents.Add() resolved the issue for my application.

提交回复
热议问题