SpinButton linking to an occupied cell

5 pts.
Tags:
SpinButton
Spreadsheets
VBA
Can a spin button be linked to the cell that it is located in? I have about 100 spin buttons that I need in this sheet and don't want to individually link each one! Thanks!

Answer Wiki

Thanks. We'll let you know when a new response is added.

Check out the LinkedCell Property.

See http://www.mrexcel.com/forum/showthread.php?t=344987 for some examples of setting this property programmatically.

You’re probably better off creating the buttons programmatically, then setting their LinkedCell property.

<pre>With Worksheets(1)
Set cb = .Shapes.AddFormControl(xlCheckBox, 10, 10, 100, 10)
cb.ControlFormat.LinkedCell = “A1”
End With</pre>

(From http://msdn.microsoft.com/en-us/library/aa175670(office.11).aspx)

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: