2

I am trying to select the text in an ActiveX Text Box, so I can manipulate it via the keyboard.

I want a command that would work similarly to:

ActiveSheet.Shapes("Shape Name").TextFrame2.TextRange.Select

However, the code reference required is OLEObjects since I am using an ActiveX Text Box.

I could change the text with something like:

ActiveSheet.OLEObjects("Shape Name").Object.Text = "Text"

But I want to select the text so I can type into it with my keyboard.

asked Aug 9, 2024 at 18:27

1 Answer 1

2

Try this:

ActiveSheet.OLEObjects("Shape Name").Activate
answered Aug 9, 2024 at 18:46
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.