[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Access an Active X scrollbar programatically

Posted on 2009-12-17
Medium Priority
Last Modified: 2012-05-08
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
Question by:skillilea
1 Comment
LVL 81

Accepted Solution

zorvek (Kevin Jones) earned 2000 total points
ID: 26077571
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


Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question