Results 1 to 2 of 2
  1. #1
    3 Star Lounger
    Join Date
    Jan 2003
    Den Haag, Netherlands
    Thanked 0 Times in 0 Posts

    Standard Macro (2002)

    Good afternoon,

    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...)

    Many thanks!
    Daphne <img src=/S/woops.gif border=0 alt=woops width=58 height=36>

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Thanked 31 Times in 31 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:

    Sub SpacePara11()
    Selection.ParagraphFormat.LineSpacing = LinesToPoints(1.1)
    End Sub

    If you want it to be available in all documents, create it in 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.

Posting Permissions

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