ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Text Box macro (https://www.excelbanter.com/excel-programming/344223-text-box-macro.html)

Alex Martinez

Text Box macro
 

Hi,

I want to use a command button to copy a text box and put it in a define
area, but I don't know how to code that. I tired to use a macro, but I am
not getting the text box. Any tips will be appreicated.




Chip Pearson

Text Box macro
 
Alex,

Try

Range("A1").Value = Worksheets("Sheet1").TextBox1.Text

Change the A1 to the appropriate reference.

--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Alex Martinez" wrote in message
...

Hi,

I want to use a command button to copy a text box and put it in
a define area, but I don't know how to code that. I tired to
use a macro, but I am not getting the text box. Any tips will
be appreicated.






All times are GMT +1. The time now is 06:48 AM.

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