+ Reply to Thread
Results 1 to 3 of 3

Disable only SpinUp/SpinDown on a spin button

  1. #1
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185

    Disable only SpinUp/SpinDown on a spin button

    Hi all,

    I suspect the answer to this will be no, but I'll ask anyway. I am using a Spin Button to move data up/down a list, and I have written some code (below) that identifies wheter or not the selected item is top/botom of the list. If it is, I would like to disable the option to spin up/down, but I can only find an option to disble the the button as a whole. Is there another option to do this or will I have to write some code to stop it working in these situations.

    Thanks.

    The code that I use to identify options on the top/bottom of the list. This Macro is activated by an _change event on the UserForm.

    Please Login or Register  to view this content.
    Ducks are better crispy...

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,282

    Re: Disable only SpinUp/SpinDown on a spin button

    You can't disable part of a spinner (well, you probably could with some really complex API functions) - normally you would just check the max if you are spinning up or the min if spinning down and issue a warning as applicable.
    Remember what the dormouse said
    Feed your head

  3. #3
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Somerset, England
    MS-Off Ver
    XP, 2003, 2007 - depends on location
    Posts
    185

    Re: Disable only SpinUp/SpinDown on a spin button

    Thats a shame, would be so much easier if I could! Thanks anyway.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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