Results 1 to 5 of 5
  1. #1
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Intercept Bold button? (W2000 SR1a)

    I know how to intercept menu commands by creating appropriately named Macros.

    For one particular template I need to intercept the B toolbar button, but trial and error has failed to identify the Macro name I need to use. Does anyone know how to do this?

    StuartR

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

    Re: Intercept Bold button? (W2000 SR1a)

    Create a macro named Bold. Be aware, though, that it's language dependent (at least, it is in Word 97). Also, if you decide to make "Bold" do something else, like making selected text italic instead of bold, the button won't stay down.

  3. #3
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Intercept Bold button? (W2000 SR1a)

    > it's language dependent
    Bother! I have to support (at least) English, French, German, Spanish and Portuguese.

    The reason I have to do this is because we will be using a different BOLD font, so when the user makes something bold I will have to change fonts. Making these fonts bold does not affect the printed output so I can happily let it toggle the BOLD state as well.

    StuartR

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

    Re: Intercept Bold button? (W2000 SR1a)

    Stuart,

    As I mentioned, it's language dependent for Word 97. It might be better in Word 2000 and/or XP, but I can't check that.

    You might create a central macro Bold that switches fonts and a one-instruction macro for each language. It's a nuisance, I realize, but you probably won't need any conditional code. A macro called Gras or Fett (I think that's Bold in French and German, respectively) probably won't do anything in another language, so they won't bite each other.

    Sub Gras
    Call Bold()
    End Sub

    Sub Fett()
    Call Bold()
    End Sub

  5. #5
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Intercept Bold button? (W2000 SR1a)

    Thanks Hans,

    The English one works fine, I'll get my colleagues to test the other languages and let you know how it works on Office 2000 and XP, fortunately I don't have to support Office 97.

    StuartR

Posting Permissions

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