+ Reply to Thread
Results 1 to 7 of 7

Infor bubble on activeX command buttons

  1. #1
    Registered User
    Join Date
    06-16-2016
    Location
    Michigan
    MS-Off Ver
    office365
    Posts
    26

    Lightbulb Infor bubble on activeX command buttons

    I'm rather new to the whole programming and VBA area of excel. I've been playing around with the activeX command buttons and have surprisingly used them in great fashion with my work spreadsheets. But I was wondering is there a way to make a info bubble appear while hovering over a button before it is clicked to allow someone who isn't familiar with my workbook to get a description of what the button does? Thank you in advance for any and all help and suggestions you bring to me.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Infor bubble on activeX command buttons

    Hello welcome to the forum

    You could have a Message box pop up on the Mouse Move Event for Active X command button, for example:

    Please Login or Register  to view this content.
    This would have the button caption on the Title bar and your information would be in the 'Information here' string.

    DBY

  3. #3
    Registered User
    Join Date
    06-16-2016
    Location
    Michigan
    MS-Off Ver
    office365
    Posts
    26

    Re: Infor bubble on activeX command buttons

    DBY,
    Thank you for the response. When I add this code to the sheet it opens up a dialog box before it prompts me to save. I would like to have a description bubble appear on a mouse over prior to a click. Did I just add the code in the wrong spot?

    This is the string I'm trying to create.....

    Private Sub CommandButton6_Click()
    Dim ButtonCap As String
    ButtonCap = Me.CommandButton6.Caption

    MsgBox "save on desktop", , ButtonCap & " Description"
    ChDir "C:\Users\esmcca\Desktop"
    ActiveWorkbook.SaveAs Filename:= _
    "C:\Users\esmcca\Desktop\UF Tracking by color.xlsm", FileFormat:= _
    xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
    End Sub


    Also I would like to have this just save and not prompt me to see if I want to overwrite the existing file. I do want to overwrite it because I'm trying to save with a click. Is that a possibility as well?

  4. #4
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Infor bubble on activeX command buttons

    Hello
    The code I uploaded would go into the Mouse Move Event on the Worksheet CommandButton 6. When the mouse is moved over that button the message box appears. If you just want to save the workbook without any questions you can just use:

    Please Login or Register  to view this content.
    It will just save it to where it loaded from. Is that what you wish to do?

  5. #5
    Registered User
    Join Date
    06-16-2016
    Location
    Michigan
    MS-Off Ver
    office365
    Posts
    26

    Re: Infor bubble on activeX command buttons

    Oh I didn't realize there was different things in the other drop down menu. This is my first time ever using VBA and excel so I'm learning as I go. I did get it to work with the mouse over. But is there a way to just get it to appear and disappear while hovering over the button instead of making it a message box?

  6. #6
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Infor bubble on activeX command buttons

    Hi
    It's all I can think of with Active X controls. Sorry.

  7. #7
    Registered User
    Join Date
    06-16-2016
    Location
    Michigan
    MS-Off Ver
    office365
    Posts
    26
    Its ok it was a great help thank you.

+ 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] One Sub for Multiple Command Buttons (ActiveX Control)
    By Raymundus in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-19-2016, 11:30 AM
  2. activeX controls command buttons are moving arround and changing forms and sizes
    By mandura in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2015, 02:18 AM
  3. [SOLVED] Command Buttons Form Control or ActiveX
    By Epscan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2014, 01:41 PM
  4. Call UserForm from a variable number of ActiveX command buttons
    By GreggProKH in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 07-11-2014, 03:55 AM
  5. Useform Code - 12 Command Buttons dependant on other command buttons
    By darrenkaye in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2013, 10:58 AM
  6. Code for a master command button to change the backcolor of multiple command buttons?
    By panttherm5 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2012, 10:11 PM
  7. ActiveX Command Buttons - Dont stick in the same place?
    By mworonuk in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-08-2010, 02:44 AM

Tags for this Thread

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