|
|
Before and After Spacing.
Hi All,
I have a program that merges a text file with my own delimiters into a
blank word document.
I create a table an insert a number of rows.
Recently I have notice the paragraph spacing in the cells is now set
to 0pt before and 10pt after.
Can someone help me set the after spacing to 0pt, either per cell or
for the table as a whole or even for the entire document. I have
tried a number of commands but I can't seem to get it.
Regards,
Andrew.
|
|
0
|
|
|
|
Reply
|
Andrew
|
12/20/2009 2:03:22 PM |
|
Hi Andrew,
Although the more efficient way to control the paragraph spacing is to
define a paragraph style with the desiried spacing and apply it to your
paragraphs, you can use the following macro to set the space after the
paragraphs in all your tables to 0.
Sub SetSpaceAfterToZero()
Dim i As Long
With ActiveDocument
For i = 1 To .Tables.Count
.Tables(i).Range.ParagraphFormat.SpaceAfter = 0
Next
End With
End Sub
--
Hope this helps,
Pesach Shelnitz
My Web site: http://makeofficework.com
"Andrew ." wrote:
> Hi All,
>
> I have a program that merges a text file with my own delimiters into a
> blank word document.
>
> I create a table an insert a number of rows.
>
> Recently I have notice the paragraph spacing in the cells is now set
> to 0pt before and 10pt after.
>
> Can someone help me set the after spacing to 0pt, either per cell or
> for the table as a whole or even for the entire document. I have
> tried a number of commands but I can't seem to get it.
>
> Regards,
> Andrew.
> .
>
|
|
0
|
|
|
|
Reply
|
Utf
|
12/20/2009 4:33:01 PM
|
|
On Dec 21, 3:33=A0am, Pesach Shelnitz <pesach18(AT)hotmail.com> wrote:
> Hi Andrew,
>
> Although the more efficient way to control the paragraph spacing is to
> define a paragraph style with the desiried spacing and apply it to your
> paragraphs, you can use the following macro to set the space after the
> paragraphs in all your tables to 0.
>
> Sub SetSpaceAfterToZero()
> =A0 =A0 Dim i As Long
>
> =A0 =A0 With ActiveDocument
> =A0 =A0 =A0 =A0 For i =3D 1 To .Tables.Count
> =A0 =A0 =A0 =A0 =A0 =A0 .Tables(i).Range.ParagraphFormat.SpaceAfter =3D 0
> =A0 =A0 =A0 =A0 Next
> =A0 =A0 End With
> End Sub
>
> --
> Hope this helps,
> Pesach Shelnitz
> My Web site:http://makeofficework.com
>
Thanks Pesach. Worked well.
I also discovered the first paragraph needed a little help too and the
following worked.
ActiveDocument.Paragraphs(1).Range.ParagraphFormat.SpaceAfter =3D 0
I like your website - great links to other reference sites.
Thanks again.
Andrew.
|
|
0
|
|
|
|
Reply
|
Andrew
|
12/21/2009 4:43:14 AM
|
|
|
2 Replies
1765 Views
(page loaded in 0.001 seconds)
Similiar Articles: Before and After Spacing. - microsoft.public.word.vba.general ...Hi All, I have a program that merges a text file with my own delimiters into a blank word document. I create a table an insert a number of rows... Changing space before and after paragraphs does nothing ...I am using PP 2003. I am trying to format text in a text box within an existing presentation. I set the line spacing for the whole text box, and that ... how to automatically suppress space before after column break ...Having Spacing Before and After on some of the styles, I seem to be unable to have the space before at the beginning of a column automatically dismi... Extra spaces before and after text. - microsoft.public.outlook ...when I try to edit an e-mail I am forwarding, or replying to, Outlook is adding extra spaces before and after my text. This only applies when I try... Unwanted Spacing Before Footer - microsoft.public.word.pagelayout ...I am using MS Word2007, and am having issues with unwanted space after my paragraph and before my footer. I turned on the paragraph symbols and the... Custom line spacing in a document - microsoft.public.mac.office ...Much better to explicitly set the space before and after on the Style using Format>Style... So you know what you're going to get :-) Hope this helps On 31/03/10 12 ... cannot change line spacing - microsoft.public.word.newusers ...If the Line Spacing is correct, verify that the Spacing Before and After (Format | Paragraph) is set to zero (or whatever you prefer). -- Stefan Blom Microsoft ... automatic spacing between paragraphs - microsoft.public.word ...Formatting Long Documents ... In Word's paragraph spacing dialog, I see that there is an option to make the spacing ... If you use the Auto space before and after a ... Question on Word Bullet Spacing - microsoft.public.word.pagelayout ...The entire document is set to "0 pt" space before and after all paragraphs. Therefore the bulleted lists should be spaced identically to a regular double-spaced ... Editing Paragraph Line Spacing using macro; need help - microsoft ...Editing Paragraph Line Spacing using macro; need help - microsoft ... Changing space before and after paragraphs does nothing ... I set the line spacing for ... Add spacing before and after a paragraph in MS Word? - Yahoo! AnswersBest Answer: I agree with your definition of a paragraph. To add the spacing, right-click in the title and select Paragraph. Then look around in the dialog ... Microsoft Word - Free Online TutorialsIt will be used to illustrate Space Before, Space After, and Line Spacing. Space Before tells Microsoft Word how much space to leave before the paragraph. Space Before and Space After :: Chapter 9. Paragraph Indents and ...Time for another sweeping pronouncement: Never, ever, under any circumstances should you have more than one consecutive carriage return in your document. Understanding line and paragraph spacing in Word « CompuSavvy's ...Paragraph Spacing (“Before” and “After” Spacing) By contrast with line spacing, paragraph spacing refers to the space between paragraphs. How to Change Spacing Between Paragraphs in MS Word | eHow.comChange the numbers in the "Before" and "After" boxes underneath "Spacing" on the Indents and Spacing tab. The Preview box beneath the Spacing section will allow you to ... 7/24/2012 6:31:14 AM
|
|
|
|
|
|
|
|
|