#1
|
|||
|
|||
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 |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Can I repeat or self-populate cells/tables? | pvh | PowerPoint | 6 | 05-05-2015 03:21 PM |
VBA code to format a document containing tables | rasika99 | Word VBA | 3 | 12-12-2014 04:16 AM |
Tables in Powerpoint - Hiding Cells | manisfeld | PowerPoint | 2 | 06-08-2014 08:17 PM |
Tables not populating properly from code | DepricatedZero | Word VBA | 1 | 06-04-2013 06:22 AM |
Shading in Cells in Word Tables | Cindy | Word Tables | 1 | 01-04-2013 02:38 PM |