PC Review


Reply
Thread Tools Rate Thread

How to change textbox caption in Active sheet from UserForm

 
 
=?Utf-8?B?bWJhMTk3Ng==?=
Guest
Posts: n/a
 
      8th Nov 2007
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,
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      8th Nov 2007
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,

 
Reply With Quote
 
Corey
Guest
Posts: n/a
 
      8th Nov 2007
I think you are refering to changing the Caption or LABEL of the Textbox via Code, is this correct ?

"mba1976" <(E-Mail Removed)> wrote in message
news:46D2C7D6-162F-4568-8203-(E-Mail Removed)...
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,


 
Reply With Quote
 
Corey
Guest
Posts: n/a
 
      8th Nov 2007
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" <(E-Mail Removed)> wrote in message
news:46D2C7D6-162F-4568-8203-(E-Mail Removed)...
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,


 
Reply With Quote
 
Dave Morrison
Guest
Posts: n/a
 
      10th Nov 2007
Sheets(1).TextBox1.Text = TextBox1.Text
this is the command from the userform

*** Sent via Developersdex http://www.developersdex.com ***
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Make Userform Caption equal textbox contents Roger on Excel Microsoft Excel Programming 2 2nd Dec 2009 12:55 PM
Change color of userform caption bar =?Utf-8?B?RGFsZSBGeWU=?= Microsoft Excel Programming 0 15th Oct 2007 06:13 PM
Change label caption on userForm while code runs Sliman Microsoft Excel Programming 1 16th Mar 2006 05:38 PM
Userform Listbox using an active sheet steve.sparti@gmail.com Microsoft Excel Misc 0 1st Mar 2006 08:22 PM
userform - active sheet gillesdhooghe Microsoft Excel Programming 3 20th Jan 2006 12:24 PM


Features
 

Advertising
 

Newsgroups
 


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