ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   TEXTBOX in USERFORM (https://www.excelbanter.com/excel-programming/324296-textbox-userform.html)

Ruud van Deursen

TEXTBOX in USERFORM
 
I have a Userform1

In a worksheet, when i select a number of cells (any
cells) what is the code to put in text in these cells
with use of the textbox on the userform.

thank you

Bob Phillips[_6_]

TEXTBOX in USERFORM
 
Do you mean something like?

Userform1.Textbox1.Text = ACtivecell.Value

--

HTH

RP
(remove nothere from the email address if mailing direct)


"RUUD VAN DEURSEN" wrote in message
...
I have a Userform1

In a worksheet, when i select a number of cells (any
cells) what is the code to put in text in these cells
with use of the textbox on the userform.

thank you




No Name

TEXTBOX in USERFORM
 
When i doubleclick on the textbox1 i can past the code
like this:

Private Sub TextBox1_Change()
UserForm1.TextBox1.Text = ActiveCell.Value
End Sub

Is this the right procedure


But it is not possible to fill the textbox with text.
-----Original Message-----
Do you mean something like?

Userform1.Textbox1.Text = ACtivecell.Value

--

HTH

RP
(remove nothere from the email address if mailing direct)


"RUUD VAN DEURSEN"

wrote in message
...
I have a Userform1

In a worksheet, when i select a number of cells (any
cells) what is the code to put in text in these cells
with use of the textbox on the userform.

thank you



.


Bob Phillips[_6_]

TEXTBOX in USERFORM
 
I presume that you mean

Private Sub TextBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean)
UserForm1.TextBox1.Text = ActiveCell.Value
End Sub


--

HTH

RP
(remove nothere from the email address if mailing direct)


wrote in message
...
When i doubleclick on the textbox1 i can past the code
like this:

Private Sub TextBox1_Change()
UserForm1.TextBox1.Text = ActiveCell.Value
End Sub

Is this the right procedure


But it is not possible to fill the textbox with text.
-----Original Message-----
Do you mean something like?

Userform1.Textbox1.Text = ACtivecell.Value

--

HTH

RP
(remove nothere from the email address if mailing direct)


"RUUD VAN DEURSEN"

wrote in message
...
I have a Userform1

In a worksheet, when i select a number of cells (any
cells) what is the code to put in text in these cells
with use of the textbox on the userform.

thank you



.




No Name

TEXTBOX in USERFORM
 
Thank You.
-----Original Message-----
I presume that you mean

Private Sub TextBox1_DblClick(ByVal Cancel As

MSForms.ReturnBoolean)
UserForm1.TextBox1.Text = ActiveCell.Value
End Sub


--

HTH

RP
(remove nothere from the email address if mailing direct)


wrote in message
...
When i doubleclick on the textbox1 i can past the code
like this:

Private Sub TextBox1_Change()
UserForm1.TextBox1.Text = ActiveCell.Value
End Sub

Is this the right procedure


But it is not possible to fill the textbox with text.
-----Original Message-----
Do you mean something like?

Userform1.Textbox1.Text = ACtivecell.Value

--

HTH

RP
(remove nothere from the email address if mailing

direct)


"RUUD VAN DEURSEN"


wrote in message
...
I have a Userform1

In a worksheet, when i select a number of cells (any
cells) what is the code to put in text in these

cells
with use of the textbox on the userform.

thank you


.



.


Tom Ogilvy

TEXTBOX in USERFORM
 
You have it reversed:

Private Sub TextBox1_Change()
ActiveCell.Value = UserForm1.TextBox1.Text
End Sub

to put the value of the textbox into the cell.

--
Regards,
Tom Ogilvy


wrote in message
...
When i doubleclick on the textbox1 i can past the code
like this:

Private Sub TextBox1_Change()
UserForm1.TextBox1.Text = ActiveCell.Value
End Sub

Is this the right procedure


But it is not possible to fill the textbox with text.
-----Original Message-----
Do you mean something like?

Userform1.Textbox1.Text = ACtivecell.Value

--

HTH

RP
(remove nothere from the email address if mailing direct)


"RUUD VAN DEURSEN"

wrote in message
...
I have a Userform1

In a worksheet, when i select a number of cells (any
cells) what is the code to put in text in these cells
with use of the textbox on the userform.

thank you



.





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

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