Weird spacing

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Weird spacing

Post by Peter Kinross »

With the attached doc, the bottom 2 lines have funny spacing that I cannot fix.
Well I did fix it by copying the formatting of the top lines and then changing back to bold. But I cannot see why the spacing is out.
How would the experts fix this?
You do not have the required permissions to view the files attached to this post.
Avagr8day, regards, Peter

User avatar
Rudi
gamma jay
Posts: 25455
Joined: 17 Mar 2010, 17:33
Location: Cape Town

Re: Weird spacing

Post by Rudi »

As far as I can see there is a difference in the paragraph spacing between the first line and the last two lines.
If you click in the first line and activate the paragraph dialog box, make a mental note of the Left and Right Indents and the Before and After paragraph spacing.
Then click in any of the two lines at the bottom and reactive the paragraph dialog. Notice the difference in the Alignment and Spacing settings.

How I'd fix this difference: Format Painter (as you mentioned!)
Regards,
Rudi

If your absence does not affect them, your presence didn't matter.

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: Weird spacing

Post by Peter Kinross »

Thanks Rudi. Format painter is fine if I have a good line to copy from. And also if I can put up with having to re-do all font type, font sizes, bold, para spacing, line spacing, italics etc. With a long doc that is far too onerous.
The problem has been occuring when I convert a PDF doc to Word. One particular source's PDFs have every line with stuffed char spacing, so nothing to copy formatting from. I have tried converting from Foxit, Acrobat and several online converters. All give the same errors.
Most pdf docs convert just fine, but one particular source (an investment company called Netwealth) is always messed up. The attached is not from that source though.
I'm stumped, surely someone somewhere can see what is wrong and work out a fix.
Avagr8day, regards, Peter

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Weird spacing

Post by HansV »

The spacing of the spaces in those paragraphs has been set to a negative amount. The following macro will fix that:

Code: Select all

Sub FixSpacing()
    ActiveDocument.Content.Font.Spacing = 0
End Sub
Best wishes,
Hans

User avatar
kdock
5StarLounger
Posts: 720
Joined: 21 Aug 2011, 21:01
Location: The beautiful hills of Western North Carolina

Re: Weird spacing

Post by kdock »

Another way to fix errant manual formatting when you're not sure what's going on is to select the sentences in question and press Ctrl+Space. This will reset manual font formatting. Ctrl+q will reset manual paragraph formatting. At that point you'll be left with the formatting of the paragraph's style.

Kim
"Hmm. What does this button do?" Said everyone before being ejected from a car, blown up, or deleting all the data from the mainframe.

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: Weird spacing

Post by Peter Kinross »

Thanks Hans - again. Yep that works a treat.
Is there a Menu selection that will do that?
Avagr8day, regards, Peter

User avatar
HansV
Administrator
Posts: 78236
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Weird spacing

Post by HansV »

The problem is that the setting is part of the Advanced tab of the Font dialog:
S3106.png
Clicking OK will most likely change other font properties in addition to the Spacing property; I assumed that you don't want that.
The macro changes only the Spacing property.
You do not have the required permissions to view the files attached to this post.
Best wishes,
Hans

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: Weird spacing

Post by Peter Kinross »

I had already tried that. It made no diff at all. In fact that is the setting that was set when I opened the docs
Avagr8day, regards, Peter

User avatar
Peter Kinross
5StarLounger
Posts: 962
Joined: 09 Feb 2010, 00:33
Location: Patterson Lakes, Victoria, Australia

Re: Weird spacing

Post by Peter Kinross »

Whoops, sorry I missed your reply Kim. Thanks for that.
Ctrl+Space does indeed fix the spacing, but it also changes the font size, bold etc.
Ctrl+q didn't fix the spacing, it did change the para indent though, but the spacing remained unchanged.
Avagr8day, regards, Peter