ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Form Controls in XL (https://www.excelbanter.com/excel-programming/437785-form-controls-xl.html)

H.G. Lamy

Form Controls in XL
 
Hello,

can I programmatically change properties of (simple) Form Controls in Excel
?
(I need to set different Min and Max-Values of a SpinButton, depending on
certain values.)

Thank you in advance.

Kind regards,

H.G. Lamy



joel[_404_]

Form Controls in XL
 

With ActiveSheet
Set Spinner = .Shapes("Spinner 1").ControlFormat
Spinner.Min = 5
Spinner.Max = 10

End With


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=165099

Microsoft Office Help


H.G. Lamy

Form Controls in XL
 
Thank you, Joel !

H.G.

"joel" wrote in message
...

With ActiveSheet
Set Spinner = .Shapes("Spinner 1").ControlFormat
Spinner.Min = 5
Spinner.Max = 10

End With


--
joel
------------------------------------------------------------------------
joel's Profile: 229
View this thread:
http://www.thecodecage.com/forumz/sh...d.php?t=165099

Microsoft Office Help





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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com