userform in powerpoint

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
 
P

Preschool Mike

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top