View Single Post
 
Old 04-24-2012, 05:03 AM
SCMiller SCMiller is offline Windows Vista Office 2007
Novice
 
Join Date: Apr 2011
Posts: 4
SCMiller is on a distinguished road
Default How to change style of text in table?

Code:
Sub CreatDoc()
    Dim newDoc As Document
    Dim rg As Range
    
    Set newDoc = Documents.Add
    Set rg = ActiveDocument.Range(Start:=0, End:=0)
    newDoc.Tables.Add Range:=rg, NumRows:=1, NumColumns:=1
    With newDoc.Tables(1).Cell(1, 1)
        .Range.Text = "Hi!"
        'How do I change the style of the text in table 1 cell(1,1)?
    End With
End Sub
Reply With Quote