Linking Text to a Spinner

SonicBoomGolf

Active Member
Joined
Aug 7, 2004
Messages
325
I want to link a number entered in the middle of text to a spinner value. As the spinner values changes, I would like for the number in the text cell to change also.

The text is entered in the cell as such:
Under the current assumption, 1% of all customers will purchase a lesson plan.

I am including spinners so that my potential clients can create their own "What-If" situations. So if the 1% was change to a 5% due to clicking the spinner, I would like the cell containing text to now read:

Under the current assumption, 5% of all customers will purchase a lesson plan.

Any Ideas?
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Are you storing the value of the spinner in a seperate Cell? If you are, you can use the following formula:
Code:
="Under the current assumption, " & F8 & "% of all customers will purchase a lesson plan."
Where F8 holds the spinner value in this case.

Otherwise, use the following code:
Code:
Private Sub SpinButton1_Change()
    [A1] = "Under the current assumption, " & SpinButton1.Value & "% of all customers will purchase a lesson plan."
End Sub
 
Upvote 0
Thanks for the help. Your tip, ="Under the current assumption, " & F8 & "% of all customers will purchase a lesson plan." worked perfectly. Thanks.
 
Upvote 0

Forum statistics

Threads
1,203,349
Messages
6,054,892
Members
444,760
Latest member
TeckTeck

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top