Consulting

Results 1 to 7 of 7

Thread: Message box pop up for command button

  1. #1
    VBAX Regular
    Joined
    Dec 2012
    Posts
    55
    Location

    Message box pop up for command button

    Hi all

    I have a commandbutton which triggers a macro and its working fine.

    But i want to have a information about that command button when user places the cursor.

    Is there any option in excel command button properties that i can use?

    Best
    Rem0

  2. #2
    VBAX Expert
    Joined
    Aug 2004
    Posts
    810
    Location
    is the what you wanted?
    [VBA]
    CommandButton1.ControlTipText = "blah"
    [/VBA]

  3. #3
    VBAX Regular
    Joined
    Dec 2012
    Posts
    55
    Location
    HI

    Thanks !

    But not sure where i need to include this?

    Best
    Rem0

  4. #4
    VBAX Expert
    Joined
    Aug 2004
    Posts
    810
    Location
    My initial assumption was that your request was for a button on a form.... however, given your inquiry, this sounds as thou it is a button on the spread sheet. Now, what type of control are you using? Is it ActiveX or Forms control, because this makes a big difference! If it is ActiveX, then you are in luck. Forms control, then as far as I know, you cannot do it. Let me know what you have and then proceed.

  5. #5
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,956
    Location
    I tried to reply earlier but the message was lost due to server busy.

    What information did you want? By cursor, maybe you mean when you select a cell or cells? If that is the case, you want the code in the WorkSheet's Selection event. Otherwise, I am guessing that you want code in the commandbutton's Click event.

    How to use or show the information? MsgBox(), Userform TextBox Control, Application.StatusBar, etc.

  6. #6
    How about a standard Msg box at the start of the macro?

  7. #7
    HI

    Thanks !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •