Consulting

Results 1 to 4 of 4

Thread: Solved: Emulating "Block Quotations" from the Legal Pleadings Wizard/Templates

  1. #1
    Site Admin
    The Princess
    VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location

    Solved: Emulating "Block Quotations" from the Legal Pleadings Wizard/Templates

    Hi, guys.

    I want to be able to create a macro that does exactly the same thing as that button.

    I cannot seem to copy the toolbar or the button or anything into a normal.dot file. The button appears to simply increase both the right and left indent by .5" each time you click it.

    Can anybody give me code that would emulate it? It'd make a good KB entry, I'm sure.
    ~Anne Troy

  2. #2
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    That button executes this macro:
    [VBA]
    Sub BlockQuotationMacro()
    Selection.ParagraphFormat.LeftIndent = Selection.ParagraphFormat.LeftIndent + 36
    Selection.ParagraphFormat.RightIndent = Selection.ParagraphFormat.RightIndent + 36
    End Sub[/VBA]
    Enjoy,
    Tony

    ---------------------------------------------------------------
    Give a man a fish and he'll eat for a day.
    Teach him how to fish and he'll sit in a boat and drink beer all day.

    I'm (slowly) building my own site: www.WordArticles.com

  3. #3
    Site Admin
    The Princess VBAX Guru Anne Troy's Avatar
    Joined
    May 2004
    Location
    Arlington Heights, IL
    Posts
    2,530
    Location
    Tony...you're the freaking bomb.
    ~Anne Troy

  4. #4
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    LOL
    Enjoy,
    Tony

    ---------------------------------------------------------------
    Give a man a fish and he'll eat for a day.
    Teach him how to fish and he'll sit in a boat and drink beer all day.

    I'm (slowly) building my own site: www.WordArticles.com

Posting Permissions

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