ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need to Add Text to Control Text Box via Command Button code (https://www.excelbanter.com/excel-programming/417341-need-add-text-control-text-box-via-command-button-code.html)

BJ

Need to Add Text to Control Text Box via Command Button code
 
[VBA Newbie ALERT]

I need to 'reset' the text within a text box [ActiveX control] when a user
selects a command button that 'resets' a model. I'm having difficulty with
the syntax. Not getting any errors, but nothing is happening.

Info_TextBox.Value = "[Enter Info Here]"

I've tried 'Contents' 'Text' etc. etc. in place of 'Value' with no luck ...

thanks.

BJ

BJ

Need to Add Text to Control Text Box via Command Button code
 
I solved the problem. Thanks.

"BJ" wrote:

[VBA Newbie ALERT]

I need to 'reset' the text within a text box [ActiveX control] when a user
selects a command button that 'resets' a model. I'm having difficulty with
the syntax. Not getting any errors, but nothing is happening.

Info_TextBox.Value = "[Enter Info Here]"

I've tried 'Contents' 'Text' etc. etc. in place of 'Value' with no luck ...

thanks.

BJ



All times are GMT +1. The time now is 11:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com