+ Reply to Thread
Results 1 to 10 of 10

Using ActiveX spin button within the worksheet to navigate through a cell drop-down list

  1. #1
    Registered User
    Join Date
    02-28-2019
    Location
    Canada
    MS-Off Ver
    office 365 for business
    Posts
    17

    Using ActiveX spin button within the worksheet to navigate through a cell drop-down list

    Hello experts,

    I am trying to find a way to use an ActiveX spin button control to navigate through a drop-down list that is pulled from a table. I know how to do that in the userform, but now I need to do it within the worksheet. Its easy enough to do it when the list of values is in nice increments, than I just add or subtract values, but I have been banging my head against google on how to move through a table or a named range. Please, help me find a way.

    Thank you.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Using ActiveX spin button within the worksheet to navigate through a cell drop-down li

    If you're using a spin button to change the values then why do you need the drop down at all?

    Just use the spin button to +1 or -1 on the index of the list.

    Maybe it would make more sense if you could attach a desensitized version of your workbook so we can understand what you're trying to accomplish.

    BSB

  3. #3
    Registered User
    Join Date
    02-28-2019
    Location
    Canada
    MS-Off Ver
    office 365 for business
    Posts
    17

    Re: Using ActiveX spin button within the worksheet to navigate through a cell drop-down li

    Ok, could you, please, share this magical code that moves index of the list +1 and -1 in the cell via spin button?

    I would like to have both options. Drop down - because a list is fairly long. I have some over hundreds of values.

    Spin button - to quickly jump to next value.

    Thanks

  4. #4
    Registered User
    Join Date
    02-28-2019
    Location
    Canada
    MS-Off Ver
    office 365 for business
    Posts
    17

    Re: Using ActiveX spin button within the worksheet to navigate through a cell drop-down li

    here is a test workbook that, i hope, shows what i want to do
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Using ActiveX spin button within the worksheet to navigate through a cell drop-down li

    For your example In spinbutton properties set linked cell I10.
    Click the * Add Reputation below to say thanks.

  6. #6
    Registered User
    Join Date
    02-28-2019
    Location
    Canada
    MS-Off Ver
    office 365 for business
    Posts
    17

    Re: Using ActiveX spin button within the worksheet to navigate through a cell drop-down li

    I must not have explained clear enough. Adding a linked cell will just change the number in the cell by whatever increment. I need to change a value to a next or previous one in the list or table. That is why the table values are not in order. Because it wont be just number. Its going to be names, properties, etc.

  7. #7
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Using ActiveX spin button within the worksheet to navigate through a cell drop-down li

    Like this then?
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-28-2019
    Location
    Canada
    MS-Off Ver
    office 365 for business
    Posts
    17

    Re: Using ActiveX spin button within the worksheet to navigate through a cell drop-down li

    This works precisely how I wanted. Only on this test worksheet. When I try to insert it into my workbook it throws an error 1004. Method 'Range' of object '_Worksheet' failed.
    Is it because my table is located on other worksheet in the workbook?

  9. #9
    Registered User
    Join Date
    02-28-2019
    Location
    Canada
    MS-Off Ver
    office 365 for business
    Posts
    17

    Re: Using ActiveX spin button within the worksheet to navigate through a cell drop-down li

    Ok. I just added "ThisWorkbook.Worksheets(" name of worksheet with table ").Range(" table name ").Rows.Count" and now it is working. Thank you very much!

  10. #10
    Valued Forum Contributor dotchiejack's Avatar
    Join Date
    05-21-2015
    Location
    Antwerp,Belgium
    MS-Off Ver
    2016
    Posts
    507

    Re: Using ActiveX spin button within the worksheet to navigate through a cell drop-down li

    Thanks for the rep.
    Have a nice day.

+ 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. Linking Spin Button to active cell in worksheet
    By jlw446 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-15-2019, 12:23 AM
  2. ActiveX Command Button combined with ActiveX List Boxes – VBA Code Needed
    By Stlcards13 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2017, 02:56 PM
  3. ActiveX Control Spin Button Copy Button and Change Cell reference?
    By chrstphrbllngs in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2016, 04:01 PM
  4. [SOLVED] Help with Spin Button. Set Spin button starting value based on a text box value
    By etuckram in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-18-2014, 10:05 AM
  5. ActiveX Spin Button LinkedCell Question
    By speed007 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-21-2014, 08:08 PM
  6. Navigate in a drop down list
    By pal_slg in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 10-19-2011, 01:53 PM
  7. Replies: 5
    Last Post: 04-23-2006, 08:00 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