ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how to get the value of a text box in a sub or function (https://www.excelbanter.com/excel-programming/402290-how-get-value-text-box-sub-function.html)

Gerardo

how to get the value of a text box in a sub or function
 
how to get the value of a text box in a sub or function (Not a private sub or
function)
without usirn UserForms

Jim Thomlinson

how to get the value of a text box in a sub or function
 
Depends on the type of text box you are using. If the text box is from the
controls toolbox and is embeded in a sheet then something like this will
do...

msgbox Sheet1.Textbox1.Text

--
HTH...

Jim Thomlinson


"Gerardo" wrote:

how to get the value of a text box in a sub or function (Not a private sub or
function)
without usirn UserForms


RB Smissaert

how to get the value of a text box in a sub or function
 
Not 100% sure what you mean with: without using UserForms.
If the form is loaded:

Sub Test()
Msgbox Form1.Textbox1.Text
End Sub


RBS

"Gerardo" wrote in message
...
how to get the value of a text box in a sub or function (Not a private sub
or
function)
without usirn UserForms




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

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