Results 1 to 2 of 2
Thread: Standard Macro (2002)
2003-03-31, 11:35 #1
- Join Date
- Jan 2003
- Den Haag, Netherlands
- Thanked 0 Times in 0 Posts
Standard Macro (2002)
Can somebody tell me how I can change the macro which has been appointed to a standard Wordbutton?
For instance for the button 'linespacing' with which you can change to 1, 2, 2.5 etc. I want to add an option 1.1 (don't ask why...)
Daphne <img src=/S/woops.gif border=0 alt=woops width=58 height=36>
2003-03-31, 12:03 #2
- Join Date
- Mar 2002
- Thanked 29 Times in 29 Posts
Re: Standard Macro (2002)
Word has separate toolbar buttons for line spacing of 1, 1.5 and 2. It's easy to record or write a macro that sets 1.1 line spacing. The code would look like this:
Selection.ParagraphFormat.LineSpacing = LinesToPoints(1.1)
If you want it to be available in all documents, create it in Normal.dot or in a global template.
If you want it to be available in documents belonging to a specific template only, create the macro in that template.
You can then create a custom toolbar button and assign SpacePara11 as action.
But your post is probably about the line spacing dropdown list offering 1.0, 1.5, 2.0, 2.5, 3.0 and More... as options.
To add the 1.1 option, create the SpacePara11 macro described above.
Then, right-click any toolbar and select Customize... Select the Commands tab in the Customize dialog.
Scroll the Categories list until you see Macros; select this.
You should see SpacePara11 in the Commands list. Drag it to the Line Spacing drop down list.
The list will drop down automatically.
Drop the macro in the position where you want it (probably between 1.0 and 1.5)
Right-click the new item and change the name to 1.1
Close the Customize dialog.