Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #8  
Old 05-12-2019, 12:42 PM
sts023 sts023 is offline Problems formatting a Word 2010 table using VBA Windows 7 64bit Problems formatting a Word 2010 table using VBA Office 2010
Hopeless Idiot
Problems formatting a Word 2010 table using VBA
 
Join Date: Apr 2019
Location: God's Own County
Posts: 26
sts023 is on a distinguished road
Default

See attached images.

"Pre.jpg" (1st image) shows the table as created by VBA.

"Post.jpg" (2nd image) shows the result after using the Word ribbon's "Home/Paragraph/Paragraph Line and Spacing" to select "1.0" and "Remove Space After Paragraph".

Note that as "Show Formatting" is ON, there are no carriage returns or line feeds at the end of the cell's text in either image.

I want to use VBA to achieve programmatically what I get manually from the ribbon, i.e. the cell Height of each row in the table is reduced to fit the text, whilst the cells Width is unchanged.
Attached Images
File Type: jpg Pre.jpg (19.6 KB, 21 views)
File Type: jpg Post.jpg (22.5 KB, 21 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Does sending a W10 Word 2016 template to someone with a W7 Word 2010 system cause problems? dianahbr Word 4 03-06-2018 02:27 PM
Word 2011 for Mac - problems with table of contents tepose Word 1 09-28-2014 03:36 PM
Problems formatting a Word 2010 table using VBA Many Corruption Problems Word 2010 sleake Word 2 07-25-2013 07:20 PM
Copy & paste problems Word 2010 pjm333 Word 2 02-13-2013 04:52 AM
Problems formatting a Word 2010 table using VBA Spacing problems with word 2010 Microsoftenquirer1000 Word 5 06-25-2012 12:01 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 09:10 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