Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 03-10-2015, 10:52 PM
gmayor's Avatar
gmayor gmayor is offline Adding table row to text style Windows 7 64bit Adding table row to text style Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,142
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

OK no problem. Locate the two lines
Code:
oRow.Cells(3).Range.ListFormat.RemoveNumbers NumberType:=wdNumberParagraph
and immediately after each add
Code:
        oRow.Cells(1).Width = oTable.Rows(2).Cells(1).Width
        oRow.Cells(2).Width = oTable.Rows(2).Cells(2).Width
        oRow.Cells(3).Width = oTable.Rows(2).Cells(3).Width
This will force the cell widths to match the first section.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding table row to text style how to apply table style WITHOUT setting it as a table? dylansmith Excel 9 05-16-2014 07:25 PM
Can't change color of text in table style ABode Word 6 12-03-2013 07:45 AM
How to change style of text in table? SCMiller Word VBA 1 04-24-2012 08:31 AM
Matching text style to drawing object style notarichman PowerPoint 0 03-07-2011 11:34 AM
Adding a paragraph mark by style? Jazz43 Word 0 02-14-2011 06:08 AM

Other Forums: Access Forums

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