nullpointer
08-01-2016, 08:43 AM
I use the following macro for adding a text box. Problem is, it always picks the first slide in the presentation and I need it to pick the slide I'm currently on to run the macro.
Sub Text_Regular_Black() Dim myTextBox As Shape
With ActivePresentation.Slides(1)
Set myTextBox = .Shapes.AddTextbox _
(Orientation:=msoTextOrientationHorizontal, Left:=100, Top:=50, _
Width:=400, Height:=100)
myTextBox.TextFrame.TextRange.Text = "Arial Font Text Box"
myTextBox.TextFrame.TextRange.Font.Color = vbBlack
End With
End Sub
Suggestions?
Sub Text_Regular_Black() Dim myTextBox As Shape
With ActivePresentation.Slides(1)
Set myTextBox = .Shapes.AddTextbox _
(Orientation:=msoTextOrientationHorizontal, Left:=100, Top:=50, _
Width:=400, Height:=100)
myTextBox.TextFrame.TextRange.Text = "Arial Font Text Box"
myTextBox.TextFrame.TextRange.Font.Color = vbBlack
End With
End Sub
Suggestions?