Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Option button caption

Since the caption's label is what a user sees when they
pull up a form and look at an option button, I need to
know if there is a way to have that caption name be able
to change itself based on an cell entry.

In other words, if cell A1 contains the text I want on the
caption, I would want the user to be able to type
something else in that cell and then have the form
automatically change the name on the caption so that the
user sees what they typed in the cell A1 without having to
teach the user to go in there and make changes to a form.

Hopefully this description makes sense.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Option button caption

Private Sub Userform_Initialize()
Dim rng as Range
set rng = Worksheets("Sheet1").Range("A1")
if not isempty(rng) then
label1.caption = rng.Text
End if
End Sub

--
Regards,
Tom Ogilvy

"Buce Roberson" wrote in message
...
Since the caption's label is what a user sees when they
pull up a form and look at an option button, I need to
know if there is a way to have that caption name be able
to change itself based on an cell entry.

In other words, if cell A1 contains the text I want on the
caption, I would want the user to be able to type
something else in that cell and then have the form
automatically change the name on the caption so that the
user sees what they typed in the cell A1 without having to
teach the user to go in there and make changes to a form.

Hopefully this description makes sense.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change caption of a button Dylan @ UAFC[_2_] Excel Worksheet Functions 3 November 25th 08 07:04 PM
Change caption on a macro button gbeard Excel Worksheet Functions 3 April 21st 05 01:43 PM
Left Justify Caption on a Button Linda Mac Excel Programming 1 August 25th 04 09:16 PM
Caption of a button Dr_Phil Excel Programming 4 May 4th 04 09:13 PM
Toggle custom button caption Tummy Excel Programming 4 February 23rd 04 07:40 PM


All times are GMT +1. The time now is 10:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"