METTRE TOUS LES MOTS EN MAJUSCULES EN GRAS

Solved
pema -  
 pema -
Hello,

I would like to know if there is a way to automatically make words bold and uppercase in Word Office 2003?

Thank you in advance.

6 answers

  1. m@rina Posted messages 27835 Registration date   Status Moderator Last intervention   11 569
     
    Hello,

    No need for a macro for that. A simple find and replace will do:

    In the Find and Replace dialog box, check the Wildcards option, then:

    - Find: (<[A-Z]{2;}>)
    - Replace with: \1
    With the cursor in the "Replace with" area, click on format at the bottom, then Font, and choose Bold.

    m@rina
    --
    - "On the office forum, questions about office software are asked..."
    - "Oh really???"
    2
  2. sriviere Posted messages 879 Status Member 413
     
    Yes, on the condition that your name in uppercase is set to uppercase by Format/Font/Uppercase, or that you have a defined list, for example: you could create a small macro.
    1
    1. pema
       
      Thank you for your response
      But when I set my text to uppercase bold format, everything defaults to uppercase/bold format, right?
      And not a predefined list
      0
  3. sriviere Posted messages 879 Status Member 413
     
    No, if you select your proper name and go to format/font, only your proper name will be capitalized.
    I suggested this solution so that a macro could be possible to do a search "whole word in uppercase/replace whole word in bold uppercase" because otherwise, if you capitalize them using the keyboard, I don't think a macro would be possible (but at first glance).
    0
    1. pema
       
      Alright, thank you very much, I will try the macro.
      0
  4. sriviere Posted messages 879 Status Member 413
     
    Hello Marina,

    Thank you for your response, I wouldn't have been able to do this chain. Does the 2; represent more than two uppercase characters?
    Where can I find the list of wildcard characters? I don't remember anymore.
    Sylvie
    0
  5. m@rina Posted messages 27835 Registration date   Status Moderator Last intervention   11 569
     
    Hello Sylvie,

    Yes, that's right, 2; represents more than 2 characters.
    A-Z represents all uppercase letters
    <> represents the beginning and end of a word
    () represents an occurrence

    If you're interested, I've explained everything here:
    https://faqword.com/index.php/word-tutoriels/toutes-versions/88-la-face-obscure-du-rr.html

    m@rina
    --
    - "On the office forum, people ask questions about office work..."
    - "Oh really???"
    0
    1. pema
       
      Great, thanks a lot!
      0
  6. sriviere Posted messages 879 Status Member 413
     
    Great, thank you very much.
    Almost without exaggerating: it's a new life that begins!
    If only you knew how many macros I've done without going through A-Z, you would be rolling on the floor laughing, just like I am now at myself!
    Have a good day.
    Sylvie
    0