Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Jan 2007
    Location
    Denmark
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Inserting pictures & line spacing (Word 2003)

    This is my first post, and I

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Inserting pictures & line spacing (Word 2003)

    Welcome to Woody's Lounge!

    We're not laughing at you, but it is a well-known problem. I wouldn't call it a bug - Word behaves as it is told to do.

    You could make the style for pictures available through a custom toolbar button, so that adjusting the line height is only one click away.

    You can hijack the Insert | Picture | From File menu item by creating a macro named InsertPicture in a standard module in the template:

    Sub InsertPicture()
    If Application.Dialogs(wdDialogInsertPicture).Show = -1 Then
    Selection.ParagraphFormat.LineSpacingRule = wdLineSpaceSingle
    End If
    End Sub

    Instead of setting the line spacing as direct formatting, you can apply the appropriate style:

    Selection.Style = "PictureStyle"

  3. #3
    New Lounger
    Join Date
    Jan 2007
    Location
    Denmark
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Inserting pictures & line spacing (Word 2003)

    Hey Hans,

    Thanks for the advice. I've enjoyed and learned from a lot from your advice to other Loungers. It's a good suggestion, and thanks for the code, which I'll use.

    I wonder if there's a way to include simple pasting in this plan. Maybe a button that opens a dialogue box that offers the choice of just pasting or inserting. I'll think it over and be grateful for any further suggestions.

    Cheers, Bill

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Inserting pictures & line spacing (Word 2003)

    You could create macros named EditPaste and EditPasteSpecial - they will hijack the Paste and Paste Special commands. But beware - you'll have to take all possible situations into account, because hijacking a command means that *you* are responsible for handling it.

Posting Permissions

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