View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
[email protected] Toyin.Butler@googlemail.com is offline
external usenet poster
 
Posts: 14
Default Modify Scroll Bar Control Properties

On 25 Jul, 20:44, Pflugs wrote:
I created a ScrollBar control and linked it to a cell. I also want the min
and max properties linked to a cell. I know this is not directly possible,
so I'm trying to write a Worksheet_Change event that updates the properties
when the specified cells change.

I can't figure out how to correctly set the scrollbar to an object that
gives me access to the Min and Max property. The control is of the type
MSForms.ScrollBar, but I can only figure out how to refer to it as a Shape or
a OLEObject, neither of which allow me to set the max or min properties.

Can anyone advise further? Thanks,
Pflugs


The only way that I have been able to this is to select the object and
then change the properties as follows. I'm sure there is a more
efficient way of completing this task. Maybe someone can shed some
light.

ActiveSheet.Shapes("Scroll Bar 1").Select
Selection.Min = 1
Selection.Max = 100

Regards,

Toyin.