View Single Post
 
Old 06-12-2022, 01:56 PM
jpl jpl is offline Windows 7 64bit Office 2010 32bit
Advanced Beginner
 
Join Date: Jan 2016
Location: France
Posts: 33
jpl is on a distinguished road
Default

Bonjour
Voici ma démarche :
J'ouvre la fenêtre "Styles" (Alt + Ctrl + Maj + S)
En cliquant sur l'icône en bas à gauche, j'ouvre la fenêtre "Créer un nouveau style" où je crée un nouveau style basé sur Normal. Ce nouveau style se nomme Style1.
Je clique alors sur le bouton "Format", puis sur "Bordures ..."
Je clique sur l'onglet "Trame de fond".
Dans la liste "Remplissage", je choisis la couleur rouge.
Le problème apparait dans la liste "Appliquer à" : le seul choix est "Paragraphe", l'option "Texte" n'est pas disponible.
Pour obtenir la trame de fond sur le texte seul (et pas de la marge gauche à la marge droite), je n'ai trouvé que les deux méthodes décrites dans mon premier message :
1. Utiliser une macro VBA
ou
2. Mettre à jour Style1 (déjà créé) pour correspondre à la sélection.

Est-il possible possible d'obtenir ceci directement à la création de Style1 , sans avoir à le modifier après sa création ?


Google Translate:
Hello



Here is my approach:



I open the "Styles" window (Alt + Ctrl + Shift + S) By clicking on the icon at the bottom left, I open the "Create a new style" window where I create a new style based on Normal. This new style is called Style1. I then click on the "Format" button, then on "Borders..."

I click on the "Background" tab. In the "Fill" list, I choose the color red. The problem appears in the "Apply to" list: the only choice is "Paragraph", the "Text" option is not available.

To get the shading on the text alone (and not from the left margin to the right margin), I only found the two methods described in my first post:

1. Use a VBA macro Where

2. Update Style1 (already created) to match the selection. Is it possible to get this directly when creating Style1 , without having to modify it after it's created?

Last edited by Charles Kenyon; 06-13-2022 at 11:02 AM. Reason: translation added
Reply With Quote