ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Append Text in Textbox (https://www.excelbanter.com/excel-programming/427226-append-text-textbox.html)

Excel Monkey[_2_]

Append Text in Textbox
 
I am trying to create a textbox which I can append data to. So each time a
sub is run, I want to pass a new string variable to the Value property of the
text box. Like the following:

Textbox1.Value - StringVar1

How do I append the additional text on each run? Think of this as a textbox
to view an ever increasing log file.

Thanks

EM

Peter T

Append Text in Textbox
 
With TextBox1
..Text = .Text & StringVar1
End With

Regards,
Peter T

"Excel Monkey" wrote in message
...
I am trying to create a textbox which I can append data to. So each time a
sub is run, I want to pass a new string variable to the Value property of
the
text box. Like the following:

Textbox1.Value - StringVar1

How do I append the additional text on each run? Think of this as a
textbox
to view an ever increasing log file.

Thanks

EM





All times are GMT +1. The time now is 01:24 AM.

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