F
Fred
Hi everybody,
I counldn't find an answer to my question: how to change the font
attributes (e.g. size) for a whole table in an original powerpoint
table.
Once I have created the table through
ActiveWindow.Selection.SlideRange.Shapes.AddTable(4, 4).Select
I store the object ID (e.g. "Group 3020")
ReDim Preserve tblName(1 To 1)
tblName(1) = ActiveWindow.Selection.ShapeRange.Name
Set oShape = ActiveWindow.Selection.SlideRange.Shapes(tblName(1))
But when I try to address the objects' font attribute through
ActiveWindow.Selection.SlideRange.Shapes(oShape.Name).Select
With ActiveWindow.Selection.ShapeRange.TextFrame.TextRange
.Font.Name = "Courier"
.Font.Size = 12
.Font.Bold = msoTrue
End With
It gives the following error message: "TextFrame(unknown member): This
type of shape cannot have a textrange"
Since I can (on an slide) simply select a powerpoint table and change
the font attributes for the whole table at once, I wonder how to perfom
this in vba (should be possible - shouldn't it?)
Best regards to good ideas
Fred
I counldn't find an answer to my question: how to change the font
attributes (e.g. size) for a whole table in an original powerpoint
table.
Once I have created the table through
ActiveWindow.Selection.SlideRange.Shapes.AddTable(4, 4).Select
I store the object ID (e.g. "Group 3020")
ReDim Preserve tblName(1 To 1)
tblName(1) = ActiveWindow.Selection.ShapeRange.Name
Set oShape = ActiveWindow.Selection.SlideRange.Shapes(tblName(1))
But when I try to address the objects' font attribute through
ActiveWindow.Selection.SlideRange.Shapes(oShape.Name).Select
With ActiveWindow.Selection.ShapeRange.TextFrame.TextRange
.Font.Name = "Courier"
.Font.Size = 12
.Font.Bold = msoTrue
End With
It gives the following error message: "TextFrame(unknown member): This
type of shape cannot have a textrange"
Since I can (on an slide) simply select a powerpoint table and change
the font attributes for the whole table at once, I wonder how to perfom
this in vba (should be possible - shouldn't it?)
Best regards to good ideas
Fred