Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Run macro on mouse over -Excel

  • 27-01-2009 12:52PM
    #1
    Registered Users, Registered Users 2 Posts: 1,086 ✭✭✭


    Anyone know is it possible to run a macro in excel when the mouse cursor hovers over an object (rectangle)?

    I have each object performing a macro when clicked but I want them to highlight certain cells when hovered over with the cursor. I couldn't find any answers on google.


Comments

  • Registered Users, Registered Users 2 Posts: 2,494 ✭✭✭kayos


    If you look at the events available on the object you should see some mouse events. The mousemove is the most likely canidate for what you want. But be careful not to go calling the macro every single time the mouse moves over the control without first leaving it.


Advertisement
Advertisement