userform in powerpoint

  • Thread starter Thread starter Associates
  • Start date Start date
A

Associates

Hi,

I was wondering if anyone might be able to help me.

I was trying to use a userform for my powerpoint presentation. It will
require users to enter some textboxes fields. When users are done with
filling out the fields, the data will be dumped on to the powerpoint slide.
How do i do that in VBA?

Thank you in advance
 
I believe something like this might work.

'Code for submit button on user form
Private Sub CommandButton1_Click()
EnterInfo
End Sub

'Code in Module
Dim Info1 As String 'place this at top of module

Sub EnterInfo()
Info1 = UserForm1.TextBox1.Text
ActivePresentation.Slides(2).Shapes("Name of shape to display
info").TextFrame.TextRange.Text = Info1
End Sub
 
Back
Top