+ Reply to Thread
Results 1 to 2 of 2

I'm trying to change properties for all objects(scrollbars) on a worksheet

  1. #1
    Registered User
    Join Date
    05-25-2022
    Location
    Portland, Oregon
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2206 Build 16.0.15321.20000) 64-bit
    Posts
    17

    Question I'm trying to change properties for all objects(scrollbars) on a worksheet

    Hi, I need a little help if anyone knows how to do this. I have a worksheet that has 51 scrollbars on it that are used like a slider to weight different metrics based on a particular users perspective. I wanted to know if there is a For each .. next or something I can use to change the properties for all of them as a group instead the tedious manual way. It's 5 properties I need to change:

    For Each of the 51 Scrollbars

    ScrollBar1.BackColor = RGB(2, 20, 56)
    ScrollBar1.ForeColor = RGB(255, 255, 255)
    ScrollBar1.Orientation = Vertical
    ScrollBar1.Height = 88
    ScrollBar1.Width = 12.4

    Thank you in advance if anyone knows how to do this.

    Rayburn

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: I'm trying to change properties for all objects(scrollbars) on a worksheet

    You don't mention if ActiveX scrollbars or Forms Scrollbars. Below is for ActiveX.
    Please Login or Register  to view this content.
    Edit to set your own properties and values...
    Last edited by cytop; 06-23-2022 at 01:35 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Objects Properties in VBA
    By Liglin in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-17-2019, 05:39 AM
  2. VBA objects, properties and methods for coauthoring
    By PatFinegan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2018, 03:56 PM
  3. How to change properties of legend of a dynamic chart on a protected worksheet
    By mingxia in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-15-2016, 01:53 PM
  4. Identifying objects, properties and other things
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-18-2013, 11:20 PM
  5. Objects, Properties and Methods
    By noclass1980 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2012, 06:34 AM
  6. Objects, Properties and Methods
    By noclass1980 in forum Excel General
    Replies: 0
    Last Post: 10-09-2012, 02:33 AM
  7. Objects and their typical properties...
    By phuang1226 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 09-20-2006, 01:11 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1