ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to change textbox caption in Active sheet from UserForm (https://www.excelbanter.com/excel-programming/400852-how-change-textbox-caption-active-sheet-userform.html)

mba1976

How to change textbox caption in Active sheet from UserForm
 
Hi there,

I have a textbox1 in Active sheet (Sheet1).
How do I change the caption of this textbox1 from userform command button 1?


Thanks,

joel

How to change textbox caption in Active sheet from UserForm
 
You have to be in design mode and then change the property.

1) from worksheet menu - View - Toolbars - Control Toolbox
2) Press triangle to enter or exit Design Mode. It toggles back and forth
3) Press the tesxt box then press Properties ICON in the Control toolbox
toolbar.
4) Change the caption.

"mba1976" wrote:

Hi there,

I have a textbox1 in Active sheet (Sheet1).
How do I change the caption of this textbox1 from userform command button 1?


Thanks,


Corey

How to change textbox caption in Active sheet from UserForm
 
I think you are refering to changing the Caption or LABEL of the Textbox via Code, is this correct ?

"mba1976" wrote in message
...
Hi there,

I have a textbox1 in Active sheet (Sheet1).
How do I change the caption of this textbox1 from userform command button 1?


Thanks,



Corey

How to change textbox caption in Active sheet from UserForm
 
Try:
Dim res As Variant
ActiveSheet.Shapes("Label 1").Select ' Modify Label 1 to suit what the label Number Is
res = InputBox("What do you want to name it ?")
Selection.Characters.Text = res
Corey....

"mba1976" wrote in message
...
Hi there,

I have a textbox1 in Active sheet (Sheet1).
How do I change the caption of this textbox1 from userform command button 1?


Thanks,



Dave Morrison

How to change textbox caption in Active sheet from UserForm
 
Sheets(1).TextBox1.Text = TextBox1.Text
this is the command from the userform

*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 07:56 AM.

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