How to change textbox caption in Active sheet from UserForm

M

mba1976

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,
 
J

Joel

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.
 
C

Corey

I think you are refering to changing the Caption or LABEL of the Textbox via Code, is this correct ?

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,
 
C

Corey

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....

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,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top