Foam Gold provides: Word Document bulk selection table "Enable Macros"

Source: Internet
Author: User

Hundreds of thousands of tables need to be set to all sizes. Manual is useless.


Record the way that Word selects tables in bulk


Alt+f8, open the Macro dialog box and create a macro named Selectalltables

Sub selectalltables ()    DimtempTable As Table       Application.ScreenUpdating = False       ' Judging if the document is protected     IfActiveDocument.ProtectionType = wdAllowOnlyFormFields Then        MsgBox  "The document is protected and you cannot select multiple tables at this time!" "       Exit Sub   End If   " Delete all editable regions    ActiveDocument.DeleteAllEditableRanges wdEditorEveryone    ' Add editable Regions    For EachtempTable In ActiveDocument.Tables        tempTable.Range.Editors.Add wdEditorEveryone   Next    ' Select all editable Regions    ActiveDocument.SelectAllEditableRanges wdEditorEveryone    ' Delete all editable regions    ACTIVEDOCUMENT.DELETEALLEDITABLERANGES WDEDITOREVERYONE  &NBSp;   application.screenupdating = true   end sub 

Copy, run. Wait for the selected end to switch to the document to see the full selection effect.


--over!

Foam Gold provides: Word Document bulk selection table "Enable Macros"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.