Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 01-05-2016, 02:36 PM
macropod's Avatar
macropod macropod is offline Fix irregular shape of merged tables in MS Word 2007 Windows 7 64bit Fix irregular shape of merged tables in MS Word 2007 Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,512
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

OK, try this version:
Code:
Sub FixTables()
Application.ScreenUpdating = False
Dim Tbl As Table, i As Long
With ActiveDocument
  For Each Tbl In .Tables
    With Tbl
      With .Rows
        .LeftIndent = 0
        .WrapAroundText = False
        .Alignment = wdAlignRowCenter
      End With
      .TopPadding = 0
      .LeftPadding = 0
      .RightPadding = 0
      .BottomPadding = 0
      .AllowAutoFit = False
      .PreferredWidthType = wdPreferredWidthAuto
      .Columns.DistributeWidth
      .Columns(1).Width = CentimetersToPoints(1#)
      .Columns(2).Width = CentimetersToPoints(3.75)
      .Columns(3).Width = CentimetersToPoints(3.75)
      .Columns(4).Width = CentimetersToPoints(3.75)
      .Columns(5).Width = CentimetersToPoints(3.75)
  End With
  While .Tables.Count > 1
    .Tables(1).Range.Characters.Last.Next.Delete
  Wend
Next
End With
Application.ScreenUpdating = True
End Sub
What are the prompts? Without knowing what they are, I can't say whether there's a better approach than toggling Displayalerts.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
 

Tags
format data in cell, merge tables

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Combining 2 tables into 1 and use Table2's column widths (hoping for workaround dealing merged cells CodingGuruInTraining Word VBA 24 10-07-2015 07:48 PM
Fix irregular shape of merged tables in MS Word 2007 How to make gridlines in cells of tables in MS Word 2007 pgrewal Drawing and Graphics 1 07-18-2014 11:12 PM
Irregular results using Table of Figures justphilip2003 Word 2 01-23-2014 02:26 PM
Fix irregular shape of merged tables in MS Word 2007 Identifying Irregular Characters d4okeefe Word VBA 2 05-09-2013 03:14 PM
Word 2007 TOC Updates to Include Tables and Styles rphox2003 Word 6 10-21-2012 06:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 07:43 AM.


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