Results 1 to 6 of 6
  1. #1
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Paragraph Formatting - spacing etc (WORD 97/2000)

    Instead of doing the cut and paste you could set the checkbox "Tools > Templates and Add-ins > Automatically Update Document Styles" and attach the new template to the existing document. This would cause any style in the template to replace the style with the same name in the document.

    StuartR

  2. #2
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Paragraph Formatting - spacing etc (WORD 97/2000)

    Stuart,

    Thanks for the response. Sorry, perhaps I didn't make myself clear in the original message. I have done what you suggest but all it does is update the font settings and NOTHING else. All of the line spacing (height, before and after paragraph settings etc) is NOT touched. This is what I need to change. The document has a template attached to it but even changing the settings in the template does not affect it. I am stuck apart from manually editing each document ( <img src=/S/aflame.gif border=0 alt=aflame width=16 height=16> ).

    Robie
    Thanks.
    Robie

  3. #3
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Paragraph Formatting - spacing etc (WORD 97/2000)

    <P ID="edit" class=small>(Edited by robie on 17-Apr-03 11:53. New Information available)</P>Edited 12:48 GMT
    ==============

    I looked at the paragraph information using the Help|Waht This option under WORD and found that the information for Heading1 is attached. It seems that it has something called 'Direct' for paragraph formatting - which is removed when I press Ctrl-Q (the line spacing information). Ummm! Where do I go from here!

    ---------------------------------------------------

    I have a very simple document (or I should say quite a few documents) containing the following styles: Heading1, Heading2, Heading3, Normal, Bullet, NumberList etc. The documents are quite simple and small but there so many of them.

    The line spacing is not quite right for most styles. Therefore, I created a new template with the same styles, fonts, line spacing, etc. I then copy and paste from 1st document into a brand new document created with the above template.

    The problem is that all of the style (line spacing etc) is carried into this new document. I can only remove the formatting by selecting the paragraph, pressing Ctrl-Q - which then takes the formatting of the current document. But, in case where paragraphs have been formatted i.e. indented or bullets added etc is lost with the Ctrl-Q action. Is there any way of taking a paragraph/document information and pasting into the brand new document so that it assumes all of the characteristics of the new document (style, line spacing, numbering, bullets, indents etc)?

    Any help greatly appreciated. I have looked through quite a few messages but with no joy. I am sure there is an answer to this problem. Thanks in advance.

    Regards

    Raobie
    Attached Images Attached Images
    Thanks.
    Robie

  4. #4
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Paragraph Formatting - spacing etc (WORD 97/2000)

    There are two ways of applying paragraph formatting. You can apply a style, or you can directly modify the format of the particular paragraph using Format > Paragraph. The suggestion I made in my previous post will not affect Directly applied formatting, only formatting from a style with the same name.

    I did write a Macro once that allowed you to selectively remove manual formatting, I haven't tested it lately but try the attachment to <post#=126295>post 126295</post#>

    StuartR

  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: Paragraph Formatting - spacing etc (WORD 97/2000)

    In earlier versions of Word, if you changed the style definition to include the direct formatting, for example, change Heading 1 to 18 points before, then Word would "forget" that the paragraph had previously had direct formatting of 18 points before. You then could change the style definition to what it should be, and the paragraphs would become compliant.

    I just tested that in Word 2000 and it no longer seems to work. Maybe it's better that it doesn't work now....

    I think the answer is a simple macro if you only want to change line spacing, but the more things you want to conform, the easier it is to use Ctrl+Q and fix the other things by hand. So, for example:

    <pre>Sub ConformSpacingBeforeAndAfterToStyle()
    If MsgBox("Conform all paragraphs to the spacing before and after of their " & _
    "respective paragraph styles?", vbYesNo + vbQuestion) <> vbYes Then Exit Sub
    Dim para As Paragraph
    For Each para In ActiveDocument.Paragraphs
    If para.SpaceBefore <> para.Style.ParagraphFormat.SpaceBefore Then
    para.SpaceBefore = para.Style.ParagraphFormat.SpaceBefore
    End If
    If para.SpaceAfter <> para.Style.ParagraphFormat.SpaceAfter Then
    para.SpaceAfter = para.Style.ParagraphFormat.SpaceAfter
    End If
    Next
    End Sub</pre>

    Well, it turns out this just sets you up for a problem in the next document, or after the next style change. Word 2000 again fails to forget that you applied direct formatting that matches the style (at least in my test it remembered). Bummer.

    Addendum: Wow, I just looked at Stuart's template and it's very impressive. Under the covers, it uses a similar technique of setting the direct formatting to match the style, but it covers a huge range of possible types of formatting. Maybe there is a subtle difference that makes his code work better than mine. Certainly it's a more polished solution, so I recommend you try it and see if it fits.

  6. #6
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Paragraph Formatting - spacing etc (WORD 97/2000)

    Stuart & Jefferson,

    Thanks Guys. My hats off to you. I shall try your solution this week (I have been away for a few days). I think you guys deserve a great big thank you. THANK YOU. <img src=/S/clapping.gif border=0 alt=clapping width=19 height=23> .

    Robie
    Thanks.
    Robie

Posting Permissions

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