How to reference an ACTIVEX control using VBA?

G

Gato_de_Botas

I have some activex controls in some slides (not userforms). I want to make
an INITIALIZE procedure to clean the TEXTBOX from the first slide in the
presentation.

I tried:
ActivePresentation.Slides(6).TextBox1.Value = "" and also tried
ActivePresentation.Slides(6).Shapes("TextBox1").Value = ""

but none of them is working.

The textbox are in the range of slides 6 to 18, one textbox in each of it.
The user fills the textbox while the presentation is runing; it is necessary
an initialize procedure to clean the textbox at the begining of the
presentation.
 
G

Gato_de_Botas

Thanks John! It's working perfectly!
Also I used the expression:

For i = 6 To 20
ActivePresentation.Slides(i).Shapes("TextBox1").OLEFormat.Object.Value = ""
Next i

to get all slides that have the TextBox1.
 
Joined
Feb 6, 2015
Messages
1
Reaction score
0
hi

I'm Looking to Ref Activexcontrol in word

Or alternatively if someone can assist in creating force fields

I'm looking at using the if Len statement can someone please advise
 

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