+ Reply to Thread
Results 1 to 3 of 3

Mouse Up event in userform not working

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Mouse Up event in userform not working

    Hi Guys,

    i want to do "Move" button more dynamic - my idea is to add border when user is clicking it and remove border when user stops clicking in it.
    (Maybe do you have better idea how to do this button more dynamic?)

    The problem is that mouse up event is not working.

    In example i just keep pressing left mouse button on "move button" and you can see that border appeared:

    Screenshot_17.png

    But when i stop pressing left mouse button still border is there, code is:

    Please Login or Register  to view this content.
    Can anybody help?

    Best,
    Jacek
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Mouse Up event in userform not working

    do not use the SetDragable routine

    intead use the mousemove to move the form

    add these to the top of the userform code module
    Please Login or Register  to view this content.
    revised mouse routines for move icon

    Please Login or Register  to view this content.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Mouse Up event in userform not working

    this is awesome Andy!!!!

    Thank you very much!

    Without set dragabble it is very nice piece of code!

    Jacek

+ 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. Replies: 2
    Last Post: 11-15-2016, 08:36 AM
  2. UserForm.ListBox_Change event not working as expected
    By AdLoki in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-09-2014, 03:06 PM
  3. Trigger event for bombobox on userform not working
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2013, 07:18 AM
  4. Listbox Mouse Down Event
    By jj554 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-19-2013, 02:48 AM
  5. Mouse Hovering Event Handler
    By ElmerS in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-15-2010, 09:33 AM
  6. mouse click event?
    By Ramthebuffs in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-08-2006, 12:35 AM
  7. [SOLVED] mouse move event
    By David in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2005, 07:05 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