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

后端 未结 8 1675
我寻月下人不归
我寻月下人不归 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

    In desperation, trawling for answers even in blog posts and discussions far removed from this particular error it seems there's been a change in Office 2013 to the default treatment of the ReadingLayout.

    Introducing the line w.ActiveWindow.View.ReadingLayout = False seems to have solved our problem.

提交回复
热议问题