+ Reply to Thread
Results 1 to 9 of 9

Scroll Bar Maximum Value based on a Cell Value

  1. #1
    Registered User
    Join Date
    11-20-2014
    Location
    Madison, WI
    MS-Off Ver
    Excel for MAC 2011
    Posts
    50

    Scroll Bar Maximum Value based on a Cell Value

    I want users of a spreadsheet to be able to set the maximum value on various scroll bars. I am trying the following VBA code (see below) to enable this but it is not working. I am getting the following error:
    "Run-time error '438': Object doesn't support this property or method"

    Is this an Excel for Mac problem?

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Scroll Bar Maximum Value based on a Cell Value

    Which is "Scrollbar21"?

    Do you want to set one direction only?

    This works on a Windows computer.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-20-2014
    Location
    Madison, WI
    MS-Off Ver
    Excel for MAC 2011
    Posts
    50

    Re: Scroll Bar Maximum Value based on a Cell Value

    Hi jolivanes, I do not understand your reply. "Scrollbar21" is the name of one of the many scroll bar form controls I have inserted in my sheet. See attached image.

    Screen Shot 2019-12-19 at 4.42.55 PM.png

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Scroll Bar Maximum Value based on a Cell Value

    ActiveSheet.Scrollbar21.ControlFormat.Max = Range("R2").Value
    Ben Van Johnson

  5. #5
    Registered User
    Join Date
    11-20-2014
    Location
    Madison, WI
    MS-Off Ver
    Excel for MAC 2011
    Posts
    50

    Re: Scroll Bar Maximum Value based on a Cell Value

    Thanks for the suggestion. I inserted your code (as below) but am still getting the same error message: "Run-time error '438': Object doesn't support this property or method"
    I'm using Excel for Mac. Could this be an unsupported feature on a Mac?
    Please Login or Register  to view this content.

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Scroll Bar Maximum Value based on a Cell Value

    For a FormsControl Scrollbar.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-20-2014
    Location
    Madison, WI
    MS-Off Ver
    Excel for MAC 2011
    Posts
    50

    Re: Scroll Bar Maximum Value based on a Cell Value

    Thanks again for trying to help, jolivanes, but I want the user of this sheet to set the maximum for a given FormsControl Scrollbar by inputting a number in a specific cell. I have found several solutions by searching online forums ...and it seems that most people have found a solution...but I remain vexed.

  8. #8
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,528

    Re: Scroll Bar Maximum Value based on a Cell Value

    Do you mean to say that when you change
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    it does not work while without chances it does work?

  9. #9
    Registered User
    Join Date
    11-20-2014
    Location
    Madison, WI
    MS-Off Ver
    Excel for MAC 2011
    Posts
    50

    Re: Scroll Bar Maximum Value based on a Cell Value

    I hadn't tried your suggested code because it did not appear that it would achieve my goal. I just tried the following which did not work:
    Please Login or Register  to view this content.

+ 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. Cell-based scroll
    By Dmarcos in forum Excel General
    Replies: 8
    Last Post: 09-08-2021, 07:17 AM
  2. Cell-based scroll
    By Dmarcos in forum Suggestions for Improvement
    Replies: 0
    Last Post: 01-07-2019, 10:42 AM
  3. [SOLVED] Scroll through sheets (except 1st) and ClearContents based on Cell Color
    By ksayet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2015, 03:09 PM
  4. [SOLVED] Hiding Column Based on Value of Cell that Changes via Scroll Button
    By hchavous in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-01-2015, 02:45 PM
  5. Have excel scroll to a cell based on a date.
    By quikrich3 in forum Excel General
    Replies: 1
    Last Post: 05-25-2011, 05:07 AM
  6. How do I set a maximum value for the scroll bars in Excel?
    By PipsPerson in forum Excel General
    Replies: 2
    Last Post: 11-10-2005, 12:35 PM
  7. [SOLVED] Scroll Bar maximum value
    By Lee in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-02-2005, 01:06 AM

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