Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    How to check if a control is clicked (Word 2003, Win XP)

    Hi,

    I know that somewhere I can fin an old string telling me how I can check if a command bar control is clicked, but right now I not able to put up the correct question/search word to get hold of it.

    If someone could give me a short hint about how I can check whether a control like File/Save is clicked I would be very glad.

    Regards
    Bj

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: How to check if a control is clicked (Word 2003, Win XP)

    Sorry, this is not what you were asking for.

    The State property of a CommandBarButton control can have the following values:
    msoButtonDown (equals True)
    msoButtonMixed
    msoButtonUp (equals False)

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: How to check if a control is clicked (Word 2003, Win XP)

    To intercept one of the built-in commands, you must write a macro with the same name as the command, for instance FileSave or FileSaveAs. See Word for Windows commands, and their descriptions, default shortcuts and menu assignments.

  4. #4
    3 Star Lounger
    Join Date
    Jul 2001
    Location
    ASKER, Norway
    Posts
    277
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Re: How to check if a control is clicked (Word 2003, Win XP)

    Thanks Hans!

    I shall try to use this in my procedure when at work tomorrow.


    regards
    Bj

Posting Permissions

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