This should get you within plug-n-play range ....
-------begin code---------
Sub AddRegularTextBox()
Dim lastSlideNumber As Integer
lastSlideNumber = ActivePresentation.Slides.Count
With ActivePresentation.Slides(lastSlideNumber) _
.Shapes.AddTextbox _
(msoTextOrientationHorizontal, _
174, 222, 300, 100)
.TextFrame.AutoSize = ppAutoSizeNone
.TextFrame.VerticalAnchor = msoAnchorMiddle
With .TextFrame.TextRange
.Text = "Yes, it is"
.ActionSettings(ppMouseClick).Hyperlink _
.Address = "http:\\www.pptfaq.com"
' Note the hyperlink color will override this
.Font.Color.RGB = RGB(255, 0, 0)
.Font.Shadow = msoTrue
.ParagraphFormat.Alignment = ppAlignCenter
.Font.Size = 45
End With
With .Line
.ForeColor.RGB = vbBlue
.Transparency = 0
.Visible = msoTrue
End With
With .Fill
.ForeColor.RGB = RGB(255, 0, 0)
.Transparency = 0.5
.OneColorGradient msoGradientDiagonalUp, 4, 1
End With
End With
End Sub
-------end code---------
--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com
www.pptfaq.com
..
"Gil" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Bill,
>
> I am new to powerpoint VBA.
> I found this ActiveX text box example in microsoft.public.powerpoint.
>
> I did not find an example of regular textbox.
>
> Can you tell me where can I find VBA code for this ?
>
> Thank you
> Gil D.
>