+ Reply to Thread
Results 1 to 15 of 15

Show automatic balloon like messaage box when mouse hovers over a command button

  1. #1
    Registered User
    Join Date
    08-10-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    34

    Show automatic balloon like messaage box when mouse hovers over a command button

    Hi Guys,
    I dont know if this is possible, but still worth a try!
    Is it possible for a message box(or something of that kind) to appear when the mouse pointer is hovered over one of the many command buttons (telling what that button does when pressed) ? To make life easy for the user.

    Thanks in advance
    Sam

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    Hi

    Look at the attached file.

    It may give you what you need
    Attached Files Attached Files

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    samkumar, your question is posted to a Word forum but mehmetcik has posted a response for Excel. Does that solution help or are you looking for a Word solution?

    Are you talking about command buttons that you have created yourself to run VBA code? If so are they on a userform or in a document?
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    08-10-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    Thanks mehmetcik!! I actually needed it for the word document. But I will try to incorporate the idea in MS.word and see if it works.
    Cheers!

  5. #5
    Registered User
    Join Date
    08-10-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    Hi 6StringJazzer/Jeff,
    I actually needed it for the Word document and not excel.
    Yes the command buttons are created by me to run certain codes. The buttons are present on the Word document.

    Cheers, Sam

  6. #6
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    ActiveX controls placed in a UserForm have an attribute called ControlTipText, which is a little pop-up box that comes up when the mouse hovers. However, this attribute is not available when putting the button directly into a Word document (same is true of Excel).

    mehmetcik's solution is very clever and can be modified for Word. This solution creates a button, then the button you are actually interested in is smaller and placed inside the first button. The code captures the MouseMove event, which occurs any time the mouse cursor is over a control. When the mouse hovers over the inner button, a third button is shown with some text. Now here's the clever part--the cursor can't leave the inner button without crossing over the outer button. When the MouseMove event fires on the outer button, that code then hides the third button.

    I implemented the idea in Word only I used a frame instead of a larger button, and a UserForm instead of the third button. In Excel you just put the controls where you want them but in Word you have to format the controls as "Square" or some other floating format to be able to overlap them.
    Attached Files Attached Files
    Last edited by 6StringJazzer; 09-16-2013 at 12:11 PM. Reason: changed blue text

  7. #7
    Registered User
    Join Date
    08-10-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    Thanks a lot Jeff! its excellent!
    Now I have to find out a way to overlap the button on the frame.

    sam.

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    In Design Mode, right-click on the control (do this separately for both frame and button) and select Format Control. Under Layout, select any option except "In line with text." Square will cause text to wrap around the control; In front of text or behind text will not affect the text but will either hide text or show text on top of the control. Then you can move it freely around the page and overlap other controls.

  9. #9
    Registered User
    Join Date
    08-10-2012
    Location
    germany
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    Hi 6StringJazzer/Jeff,
    Thanks a lot for your time! It was of a great help.

    Sam

  10. #10
    Registered User
    Join Date
    10-16-2012
    Location
    Aurora, CO
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    What you accomplished is exactly what I need, but I can't figure out how to duplicate your Command Button...any suggestions??

  11. #11
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    Normally we don't like new questions in another user's thread but it sounds like your question is an appropriate follow-up to this solution since you just need more detail about how to reproduce this solution.

    What aspect do you want to duplicate? To create the button, you must have the Developer tab available on the ribbon. I don't remember if 2007 shows it by default or if you have to activate it. Then you select Design Mode, then insert a control. Pick the ActiveX Command Button (do not use the Forms command button).

    Let me know if you need further details.

  12. #12
    Registered User
    Join Date
    10-16-2012
    Location
    Aurora, CO
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    I am trying to apply “mehmetcik” clever “mouse over” control button to open another spreadsheet inside the same work book.

    The first tab on the attached work book is a diagram of a classroom area. What I am trying to create is a “mouse over” for each room that would pull up the schedule for that area. The schedule changes for each area on a weekly base so the link would have to reflect any changes on the associated spreadsheet. I don’t have the code to accomplish this or what I am trying to accomplish may not be possible. If is not possible with this type of control button, does anyone have another idea, such as a macro, that would perform the same effect.
    Attached Files Attached Files

  13. #13
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    DWSchuetz, please start a new thread and include a link to this one if you think it's relevant.

    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.

  14. #14
    Registered User
    Join Date
    03-19-2014
    Location
    PA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    Quote Originally Posted by 6StringJazzer View Post
    samkumar, your question is posted to a Word forum but mehmetcik has posted a response for Excel. Does that solution help or are you looking for a Word solution?

    Are you talking about command buttons that you have created yourself to run VBA code? If so are they on a userform or in a document?
    I am new here and I don't know how to get to this reference for the answer. Can you tell me how to find this post by mehmetcik?

  15. #15
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Show automatic balloon like messaage box when mouse hovers over a command button

    Quote Originally Posted by Amoreyhvh View Post
    I am new here and I don't know how to get to this reference for the answer. Can you tell me how to find this post by mehmetcik?
    Amoreyhvh, scroll to the top of this thread and look at post #2. The Post number is at the right of the blue bar at the top of each post.

+ 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] Create popups when mouse hovers over cell
    By isc0rpi0 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-31-2021, 09:31 PM
  2. [SOLVED] How to get a pop-up tip when the user hovers the mouse over a command and option button
    By Shanthan in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-12-2013, 09:21 PM
  3. Have data labels appear and disappear as mouse hovers on graph
    By gipescob in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 09-13-2012, 07:41 PM
  4. Show graph when mouse hovers over cell
    By janethenoob in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-17-2011, 12:25 PM
  5. Image Popup when mouse arrow hovers on Button
    By ravinder_tigh in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-06-2009, 11:13 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