Setting focus to a textbox on a slide

J

John Crawford

I am writing a math question presentation. When the user clicks on the
Get Question button a new question will appear, and a textbox is
displayed. The user enters the answer in the textbox.
How do I give focus to the textbox? I cannot find a method or property
that I can set. Each time the user has to click in the textbox.
Any suggestions would be appreciated.
Thanks
John Crawford
 
J

John Crawford

Chirag:
Thanks. I will look into the code. As it sits I do not return the
correct shape handle (I return 0).
John
 
Joined
Feb 22, 2013
Messages
1
Reaction score
0
Look at ActivateShape() macro.... at [link deleted as I cannot post since my count is 0] - it
shows how to set focus on a VBA control. It can help you get started with
setting focus to VBA textbox.

- Chirag

Hi Chirag

I am having the same problem of not being able to move around the different ActiveX textboxes created on a slide viewed in slideshow.

I am using Windows 7, office 2007

I tried your link and downloaded the ActivateActiveXShape.zip example file. Tried playing it but no luck. Neither tab, enter, arrow or pgup/pgdn keys have any effect.
What am I doing wrong? Do I need any references?

cfcaec
 

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