Option Explicit
Sub gotext()
Shell TextBox1.Text
End Sub
<tbody> [TD="width: 64"] | ||||
Option Explicit
Sub gotext()
Shell Sheets("Sheet1").TextBox1.Text
End Sub
.
Ok ... I am embarrassed, ashamed and you are going to be very frustrated with me.
If you can accept my apology, please do so.
I gave you the wrong code.
Here is the corrected macro :
Code:Option Explicit Sub gotext() Shell Sheets("Sheet1").TextBox1.Text End Sub
You can download the sample workbook, that works !, from here : https://www.amazon.com/clouddrive/share/zvhdWyI8fu5yi0N8oze1Bx32B2cyVRpmXRdpJyPFcXk
Yes, I believe you most likely inserted the correct textbox but because of my stupid error, of course it wouldn't work.
From the DEVELOPER TAB / INSERT / ACTIVE X CONTROLS .. you would select TEXTBOX. Then of course you would select a COMMAND BUTTON from FORM CONTROLS, attaching that button to the macro
located in a Routine Module.
HTH
Let me know if it works for you.