In VBA, how do I access the text value of an ActiveX text box control on an Excel worksheet?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
ActiveSheet.TextBox1.Textto set or get the contents of an ActiveX textbox control.If you have more than one ActiveX textbox on a page, you can use
ActiveSheet.OLEObjects("boxname").Object.Textto set or get its contents. boxname is the name of the box in quotes ; or with no quotes, a string variable to which you have assigned the name of the textbox; or the object number of the box.See this Microsoft documentation for more information.