Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Change caption of a button | Excel Worksheet Functions | |||
Change caption on a macro button | Excel Worksheet Functions | |||
Left Justify Caption on a Button | Excel Programming | |||
Caption of a button | Excel Programming | |||
Toggle custom button caption | Excel Programming |