Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 06-06-2017, 11:49 AM
Jfedora Jfedora is offline Removing KeepWithNext Formatting from Nested Tables? Windows 7 32bit Removing KeepWithNext Formatting from Nested Tables? Office 2010 32bit
Novice
Removing KeepWithNext Formatting from Nested Tables?
 
Join Date: Jun 2017
Posts: 4
Jfedora is on a distinguished road
Default

I was able to get it to work with this. Unfortunately, My tables are still rolling over pages, but that's another problem.

Code:
For Y = 0 To LargeTable.Rows.Count
    X = 0
    Do While X < LargeTable.Columns.Count
        If LargeTable.Cell(Y, X).Tables.Count = 1 Then
            X = X + 1
            LargeTable.Rows(Y - 2).Select
            Selection.ParagraphFormat.KeepWithNext = False
            Exit Do
        End If
        X = X + 1
        Loop
Next Y
Reply With Quote
 

Tags
keep with next, table, vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested tables. Count rows NevilleT Word VBA 9 05-10-2017 05:22 AM
Remove Styles in Word 2016 without removing formatting stm27 Word 5 11-16-2016 12:49 PM
Would like help removing "tables" for boxes from document Alex MacLean Word 3 02-22-2015 01:39 PM
Formatting all tables knightmetal Word 2 09-10-2012 10:53 PM
Nested vlookup with varable tables! Dave Jones Excel 0 08-30-2012 09:15 AM

Other Forums: Access Forums

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