Re: Macro to change font by Greg
Greg
Fri Feb 02 10:40:11 CST 2007
Eddie,
You might want to consider using "range" for this sort of thing.
There is no need to actually select the individual tables.
Sub tablefontchange()
Dim aTable As Table
For Each aTable In ActiveDocument.Tables
aTable.Range.Font.Name = "Times New Romanl"
Next
End Sub
On Feb 2, 11:00 am, IdontWantS...@nospam.net (Edward Thrashcort)
wrote:
> record a macro that changes the font if you don't know the code
> to make the change you require, then create a macro that wraps
> the recorded code in a for-loop
>
> Sub tablefontchange()
> Dim aTable As Table
> For Each aTable In ActiveDocument.Tables
> aTable.Select
> Selection.Font.Name = "Times New Roman"
> Next
> End Sub
>
> Eddie