Results 1 to 7 of 7
  1. #1
    Bronze Lounger IanWilson's Avatar
    Join Date
    Dec 2000
    Location
    Bristol, United Kingdom
    Posts
    1,523
    Thanks
    0
    Thanked 1 Time in 1 Post

    Numbering without tabs (2003 and 2007)

    This arose in a document that my wife was producing in Word 2007, but I find I don't know how to get the result she wants in Word 2003 either.

    We want to produce numbered paragraphs like para (3) in the screenshot, that is no hanging indent (I know how to do that bit) and no tab after the number. I can't work out how to avoid Word putting in the tab. (Personally, I prefer the look with both the tab and the hanging indent, but that's not what she needs for this particular document.) Of course she can turn off the automatic numbering and number the list by hand, which is what we have resorted to, but can Word do what we want with automatic numbering?

    Ian
    Attached Images Attached Images

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

    Re: Numbering without tabs (2003 and 2007)

    As far as I know, Word will always insert a tab after an automatic bullet or number. You could set the tab position to immediately after the number, say at 0.2".

  3. #3
    Bronze Lounger IanWilson's Avatar
    Join Date
    Dec 2000
    Location
    Bristol, United Kingdom
    Posts
    1,523
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Numbering without tabs (2003 and 2007)

    You could, but when you reach two-digit numbers, it will no longer be the same distance from the number.

    Ian

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

    Re: Numbering without tabs (2003 and 2007)

    That's true. I don't think there's an easy solution for that.

  5. #5
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Numbering without tabs (2003 and 2007)

    The separator character (tab, space, or none) is exposed in VBA in Word 2003, but I didn't check Word 2007. You could use a macro like the following to set the list template to your preferred look:

    <code>Sub ModListTemplate()
    With Selection
    If .Range.ListParagraphs.Count = 0 Then
    MsgBox "Click in the list and try again!", vbExclamation + vbOKOnly
    Exit Sub
    Else
    If MsgBox("Modify the list template underlying this item?", vbQuestion + vbYesNo) = _
    vbNo Then Exit Sub
    End If
    With .Paragraphs(1).Range.ListFormat.ListTemplate.ListL evels(1)
    .NumberFormat = "(%1)"
    .NumberPosition = 0
    .TabPosition = 0
    .TextPosition = 0
    .TrailingCharacter = wdTrailingSpace
    End With
    End With
    End Sub</code>

    Everything except the TrailingSpace property was determined by just playing with the dialogs. To read out the settings from the list you have set up, you can use something like this:

    <code>Sub SniffListTemplateSettings()
    With Selection
    If .Range.ListParagraphs.Count = 0 Then
    MsgBox "Click in the list and try again!", vbExclamation + vbOKOnly
    Exit Sub
    End If
    Dim ListLev As Word.ListLevel
    Set ListLev = .Paragraphs(1).Range.ListFormat.ListTemplate.ListL evels(1)
    With ListLev
    ' View Immediate window (Ctrl+g) to see these five properties
    Debug.Print "NumberFormat = " & .NumberFormat
    Debug.Print "NumberPosition (points) = " & .NumberPosition
    Debug.Print "TabPosition (points) = " & .TabPosition
    Debug.Print "TextPosition (points) = " & .TextPosition
    Debug.Print "TrailingCharacter (0=tab,1=space,2=none) = " & .TrailingCharacter
    Stop ' Inspect any properties in the Locals Window, F5 to continue
    End With
    Set ListLev = Nothing
    End With
    End Sub</code>

  6. #6
    Star Lounger
    Join Date
    Jun 2001
    Location
    Vancouver, Br. Columbia
    Posts
    57
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Numbering without tabs (2003 and 2007)

    You can do it if you use multilevel list in 2007 or outline numbering in earlier versions, instead of simple numbering. In both of them, click the More button in the dialog where you define or customize the numbering scheme and there is an option "Follow number with" - select tab, space or nothing.

    Adri

  7. #7
    Bronze Lounger IanWilson's Avatar
    Join Date
    Dec 2000
    Location
    Bristol, United Kingdom
    Posts
    1,523
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Numbering without tabs (2003 and 2007)

    Aha! That sounds like an easier way. I'll try it tomorrow. Thanks.

    Ian

Posting Permissions

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