+ Reply to Thread
Results 1 to 4 of 4

Use a scrollbar to select a value between any two given numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    11-05-2024
    Location
    England
    MS-Off Ver
    365
    Posts
    5

    Use a scrollbar to select a value between any two given numbers

    Hi all

    I've been unable to find a solution using a scroll bar where you can scroll between two random variable numbers.

    So, I've created one which has taken some thought with a bit of trial and error. It's a simple sheet, but everything is available on the sheet

    You'll need to understand how Name Manager works as this is how the drop down system work. This is tagged as B. It uses the filter system to filter. It's simple enough to copy and paste into most projects as it only picks up information from three areas

    The scrollbar value is 200 which is why there is also 200 within the formula to, so don't alter these as this is part of the percentage +100 0 -100 solution

    There is no VBA coding either as I didn't want to use it as its part of a much larger project I'm working playing with

    Please find the code attached

    I hope it helps someone in the future

    Cheers, Bounce

    Bounce-Sliderbar.xlsx
    Last edited by 6StringJazzer; 11-16-2024 at 12:18 AM. Reason: clarified title

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,673

    Re: Scroll Bar solution

    Thank you for posting this. I have updated your title to more fully describe what you are doing.

    Although using Name Manager to name the range used to populate the dropdown is a nice solution, it is not required. You can put the range reference directly into the dropdown definition.

    You are not scrolling between random numbers, you are scrolling between arbitrary numbers. That is, there is nothing that randomly selects two numbers, but your solution will work for any two numbers no matter what they are.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    11-05-2024
    Location
    England
    MS-Off Ver
    365
    Posts
    5
    Ha, my meaning regarding the random number parts was that you could add any numbers into the two fields which populate from the drop down. But in thinking, I’ve not tried it with negative numbers, so my wording might be entirely correct

    But, I’ll clarify it with

    It will work with any random number you input manually so long as the first inputted number is smaller than the second inputted number”

    You don’t even need to use the name manager, that’s just how I need it to work and was how it was tested 

    Enjoy all!

    Just noticed your name, you have 6 Strings in it! My uncle started a very popular facebook group many years ago which is still going strong today. I’m guessing with that name, you’re a guitars looker too

    Cheers for changing and moving it where it needs, I must admit, I was a little lost on what to call it or where to place it 👍

    Cheers, Bounce
    Last edited by Bounce; 11-17-2024 at 06:18 AM.

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,673

    Re: Use a scrollbar to select a value between any two given numbers

    What's the name of the Facebook group? I am in a few guitar-related groups.

+ 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. [SOLVED] Need another solution to the max formula or a solution for the circular reference issue
    By Tirrazo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-22-2022, 10:36 AM
  2. [SOLVED] Spreadsheet vertical scroll area at excel limit, cannot find solution
    By Kerry1980 in forum Excel General
    Replies: 1
    Last Post: 12-24-2021, 06:32 AM
  3. Replies: 1
    Last Post: 05-23-2021, 02:07 PM
  4. VBA Userform Re-size or Scroll Bar solution
    By gtudor in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-05-2016, 08:14 AM
  5. Replies: 2
    Last Post: 05-17-2016, 04:45 PM
  6. Scroll Bar Solution Required.
    By Freddy7 in forum Excel General
    Replies: 1
    Last Post: 05-18-2015, 04:04 AM
  7. [SOLVED] Insert scroll bar and update cells when clicking on item in scroll bar window
    By kosherboy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-10-2014, 03:53 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