View Single Post
 
Old 09-04-2019, 02:57 AM
wido wido is offline Windows 10 Office 2016
Novice
 
Join Date: Sep 2019
Posts: 4
wido is on a distinguished road
Default How do I run code on all cells in all tables?

Hi. Sorry for my noobness, but we all started as noobs at some point!
The following VBA code does its thing on only one cell. How can I edit it so that it does it on all cells?? Thank you so much.
Code:
Dim tbl As Table
For Each tbl In ActiveDocument.Tables
   With tbl
      .Range.Cells(1).WordWrap = True
      .Range.Cells(1).FitText = False
   End With
Next
Reply With Quote