• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 560
  • Last Modified:

Access an Active X scrollbar programatically

I have an ActiveX control (scrollbar) on a worksheet.  I want to reference it and set it's properties in my open.

shouldn't I be able to:

dim w as worksheet
Set w = Worksheets("DTDASH")

w.scroll1.max = ##

what am I not doing.

tnx experts
0
skillilea
Asked:
skillilea
1 Solution
 
zorvek (Kevin Jones)ConsultantCommented:
Use the following technique to obtain the scroll bar control object:

   Dim TargetLabel As msForms.ScrollBar
   Set TargetLabel = Sheets("DTDASH").Shapes("ScrollBar1").OLEFormat.Object.Object

Kevin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now