Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 01-06-2017, 01:41 PM
macropod's Avatar
macropod macropod is offline Splitting Cells in a Very Large Table Windows 7 64bit Splitting Cells in a Very Large Table Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The following macro will split all cells in the last column of first table in the document into two rows:

Code:
Sub Demo()
Application.ScreenUpdating = False
Dim r As Long, c As Long
With ActiveDocument.Tables(1)
  c = .Range.Columns.Count
  For r = .Rows.Count To 1 Step -1
    .Cell(r, c).Split 2, 1
  Next
End With
Application.ScreenUpdating = True
End Sub
For PC macro installation & usage instructions, see: http://www.gmayor.com/installing_macro.htm
For Mac macro installation & usage instructions, see: http://word.mvps.org/Mac/InstallMacro.html
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
splitting cells, tables



Similar Threads
Thread Thread Starter Forum Replies Last Post
Splitting Cells in a Very Large Table How to stop a contents table from splitting over several pages Hollie Word 3 12-23-2016 08:26 AM
Formating Partial cells in a large list Zajac Excel 3 08-16-2016 09:13 AM
Splitting Cells in a Very Large Table Convert large multipage table to jpeg idiotwind Word Tables 3 12-01-2015 03:53 AM
Splitting Cells in a Very Large Table Mail merge at large table with variable number of rows blar Mail Merge 1 10-19-2015 03:04 PM
Splitting Cells in a Very Large Table Preventing cells from splitting into two pages Jaymond Flurrie Word VBA 1 05-11-2011 06:54 PM

Other Forums: Access Forums

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