Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-06-2025, 01:21 PM
kevinbradley57 kevinbradley57 is offline How to automatically remove "space after" or "space before" if in a table cell. Windows 7 64bit How to automatically remove "space after" or "space before" if in a table cell. Office 2010 64bit
Advanced Beginner
How to automatically remove "space after" or "space before" if in a table cell.
 
Join Date: Jul 2017
Posts: 87
kevinbradley57 is on a distinguished road
Default How to automatically remove "space after" or "space before" if in a table cell.


I have a boilerplate document that is essentially a one-cell table. The default paragraph style has 3 pts "space after" in order to have space between paragraphs but it also leaves 3 pts of dead/white space after if at the bottom of the cell. I'm looking for a way to automatically have 0 pts "space after" if the text is at the bottom of the cell.
Reply With Quote
  #2  
Old 04-06-2025, 01:30 PM
Italophile Italophile is offline How to automatically remove "space after" or "space before" if in a table cell. Windows 11 How to automatically remove "space after" or "space before" if in a table cell. Office 2021
Expert
 
Join Date: Mar 2022
Posts: 538
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Modify the style to have 3pts space before instead of 3pts space after. Then edit the table properties to remove the internal top margins if necessary.
Reply With Quote
  #3  
Old 04-07-2025, 07:21 AM
kevinbradley57 kevinbradley57 is offline How to automatically remove "space after" or "space before" if in a table cell. Windows 7 64bit How to automatically remove "space after" or "space before" if in a table cell. Office 2010 64bit
Advanced Beginner
How to automatically remove "space after" or "space before" if in a table cell.
 
Join Date: Jul 2017
Posts: 87
kevinbradley57 is on a distinguished road
Default

Thanks, but that didn't work. My cell margins are already 0 at top and bottom.
Reply With Quote
  #4  
Old 04-07-2025, 08:55 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline How to automatically remove "space after" or "space before" if in a table cell. Windows 11 How to automatically remove "space after" or "space before" if in a table cell. Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 4,003
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

As a result of Word's complex hierarchy of styles and formatting, you may get incorrect text formatting in a table cell if the document default settings do not match the Normal style. This applies even if you are not using Normal style for the text in your table.

Do the following: In the Paragraph dialog box, set the desired Line Spacing and Spacing Before/After. Change other options if you want. Click the Set as Default button. Choose the "This document only" option.

Do the same with the Font dialog box (Ctrl+D). Set the desired font and size. Click the Set as Default button. Choose the "This document only" option.

Save your document.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #5  
Old 04-07-2025, 09:18 AM
Italophile Italophile is offline How to automatically remove "space after" or "space before" if in a table cell. Windows 11 How to automatically remove "space after" or "space before" if in a table cell. Office 2021
Expert
 
Join Date: Mar 2022
Posts: 538
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

There isn’t a way to automatically remove the space after, whether in a table or anywhere else in a document. Your only options are to manually remove the space after, or use a different style for the last paragraph.
Reply With Quote
  #6  
Old 04-07-2025, 09:26 AM
Italophile Italophile is offline How to automatically remove "space after" or "space before" if in a table cell. Windows 11 How to automatically remove "space after" or "space before" if in a table cell. Office 2021
Expert
 
Join Date: Mar 2022
Posts: 538
Italophile is just really niceItalophile is just really niceItalophile is just really niceItalophile is just really nice
Default

Quote:
Originally Posted by Stefan Blom View Post
As a result of Word's complex hierarchy of styles and formatting, you may get incorrect text formatting in a table cell if the document default settings do not match the Normal style. This applies even if you are not using Normal style for the text in your table.
That only applies to text formatting that is part of a table style.

Word is configured to remove space after in tables if the table is inserted in a paragraph formatted with the document defaults.

Use of any other style will override the settings of the table style.

The OP’s issue is that they want the space after for all but the last paragraph of the cell, and there isn’t an automatic way of removing that.
Reply With Quote
  #7  
Old 04-07-2025, 09:58 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline How to automatically remove "space after" or "space before" if in a table cell. Windows 11 How to automatically remove "space after" or "space before" if in a table cell. Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 4,003
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Hi Italophile,

I mentioned the conflating of document defaults and the Normal style because it may have a substantial impact on the formatting inside a table cell. Text formatting inside a table may originate from the table style itself or from Normal or from an explicitly applied paragraph style. Setting the doc defaults identical to the Normal style is the only way to ensure that Word applies the correct, desired formatting, from the selected "source."

That said, I slightly misread the question. Your observation is correct, of course: There is no way to automatically remove the Spacing Below for the last text paragraph in a table cell.

The solution is to either apply a specific style to the last text paragraph in the table cell or to not make use of Spacing After in any paragraph style that you use in the table. (There mustn't be any Spacing After set in the table style itself, either, obviously.)

Setting the Spacing After to zero is what you suggested initially.
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
  #8  
Old 04-07-2025, 10:10 AM
Stefan Blom's Avatar
Stefan Blom Stefan Blom is offline How to automatically remove "space after" or "space before" if in a table cell. Windows 11 How to automatically remove "space after" or "space before" if in a table cell. Office 2021
Moderator
 
Join Date: Aug 2011
Posts: 4,003
Stefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to allStefan Blom is a name known to all
Default

Quote:
My cell margins are already 0 at top and bottom.

Hi Kevin,

Did you also look at the Spacing After setting for the text, as Italophile suggested?
__________________
Stefan Blom
Microsoft Word MVP

Microsoft 365 apps for business
Windows 11 Professional
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to automatically remove "space after" or "space before" if in a table cell. Trying to extend abbreviation to phrase. I.E. "EMS plus space bar" resulted in "Eat my spaghetti." Holopaw Word 2 01-22-2024 02:38 PM
Remove "space before" of unordered list kevinbradley57 Excel Programming 3 03-08-2019 12:27 AM
Wierd symbols inplace of "space", "indentation" etc aka.bhagvanji Word 5 02-16-2012 11:50 AM
How to automatically remove "space after" or "space before" if in a table cell. Why did I get the Capital Letter automatically after I press the "Space Bar"? LUCK_TOUCH Word 2 08-15-2011 09:59 PM
How to automatically remove "space after" or "space before" if in a table cell. The heading doesn't "obey" the "before" space! why? Jamal NUMAN Word 1 07-06-2011 04:25 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft