PDA

View Full Version : Textbox control query



bakka
01-30-2008, 07:11 AM
:banghead: I am new to VBA and doing small project for my work in powerpoint, what I am trying to achieve is the user of the slide show, to input text in to several text boxes on one slide then this text be re-displayed a few slides later, probably easy if you know how

Many thanks for any help offered,

N

John Wilson
01-30-2008, 10:35 AM
Not sure how much you know.

Right click a text box > view code
The first and last lines of the subroutine will already be there
Add a public declaration for each text variable
Add code like this changing the slide and shape numbers to suit



Public text1 As String
Private Sub TextBox1_Change()
text1 = Me.TextBox1.Text
ActivePresentation.Slides(3).Shapes(2).TextFrame.TextRange = text1
End Sub

You will need to do something similar for other text boxes