大∵熊

微信号:lgx1972_9Y

  博客园  :: 首页  :: 新随笔  ::  ::  :: 管理
Sub 选取所有表格()

'
' 选取表格 宏
'
     Dim T As Table
     Application.ScreenUpdating = False
     ActiveDocument.DeleteAllEditableRanges wdEditorEveryone
     For Each T In ActiveDocument.Tables
         T.Range.Editors.Add wdEditorEveryone
     Next
     ActiveDocument.SelectAllEditableRanges wdEditorEveryone
     ActiveDocument.DeleteAllEditableRanges wdEditorEveryone
     Application.ScreenUpdating = True
 
End Sub

 

posted on 2016-05-23 20:28  李国雄_lgx1972  阅读(1284)  评论(0编辑  收藏  举报