1

Topic: Word 2016. The macro does not work

There is a macro, for selection of tables which perfectly works in 2010 Word:

Sub selecttables ()
Dim mytable As Table
Application. ScreenUpdating = False
For Each mytable In ActiveDocument. Tables
mytable. Range. Editors. Add wdEditorEveryone
Next
ActiveDocument. SelectAllEditableRanges (wdEditorEveryone)
ActiveDocument. DeleteAllEditableRanges (wdEditorEveryone)
Application. ScreenUpdating = True
End Sub

In 2016 it does not select the table and at restart the Word falls:
The problem signature:
Name of event of a problem: APPCRASH
Name : WINWORD.EXE
The application version: 16.0.4417.1000
Mark of time of application: 5784fe59
Name of the unit with an error: StackHash_808b
The version of the unit with an error: 6.1.7601.18247
It is a bug 2016 Words? Whether it is possible to bypass it somehow?

2

Re: Word 2016. The macro does not work

, at 2013 office all tables and a Word  too are not selected falls.

3

Re: Word 2016. The macro does not work

BlackEric;
Try to comment out/remove a line with... SelectAll... - can, a range too difficult for selection.

4

Re: Word 2016. The macro does not work

The Kazan;
Yes, falls on this line, but it is the simple, one-page text document on 4 tables.