View Single Post
 
Old 07-08-2014, 01:21 AM
YJPark YJPark is offline Windows 7 64bit Office 2010 32bit
Novice
 
Join Date: Jul 2014
Posts: 2
YJPark is on a distinguished road
Default WoW, Perfect!! :)

I really really appreciate your help T.T. Thank you so much!!
It works Perfectly.
Quote:
Originally Posted by JohnWilson View Post
Pretty much the same

Dim myDocument As Slide
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes.addTable(NumRows:=3, NumColumns:=4, Left:=10, Top:=50)
.Name = "Red Square"
End With

However I hate myDocument being used to refer to a slide (I know it comes from Microsoft help but it's wrong - slides are not documents)

Sub addTable()
Dim mySlide As Slide
Dim myTable As Shape
Set mySlide = ActivePresentation.Slides(1)
Set myTable = mySlide.Shapes.addTable(NumRows:=3, NumColumns:=4, Left:=10, Top:=50)
myTable.Name = "Red Square"
End Sub

You will find it difficult to use hotkeys in PPT BTW.
Reply With Quote