Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-27-2014, 12:28 PM
norwood norwood is offline Creating "odd shaped" Table Windows Vista Creating "odd shaped" Table Office 2000
Novice
Creating "odd shaped" Table
 
Join Date: Sep 2013
Posts: 23
norwood is on a distinguished road
Default Creating "odd shaped" Table

How do I create a single table (called TableA, for example) with a varying number of column assigned to different rows ?

For example, row 1 has one column;
row 2 has two coumns;
row 3 has one column.

I tried using Set ObjectCol.Add , but it just creates a 3X2 table.



Thanks !
Reply With Quote
  #2  
Old 03-27-2014, 05:08 PM
fumei fumei is offline Creating "odd shaped" Table Windows 7 64bit Creating "odd shaped" Table Office XP
Expert
 
Join Date: Jan 2013
Posts: 440
fumei is on a distinguished road
Default

You need to make a normal table first, then merge cells to make the structure you want.
Code:
Dim oTbl As Table
Set oTbl = ActiveDocument.Tables.Add(Range:=Selection.Range, NumRows:=3, NumColumns:= _
      2, DefaultTableBehavior:=wdWord9TableBehavior, AutoFitBehavior:= _
      wdAutoFitFixed)
      
oTbl.Rows(1).Cells.Merge
oTbl.Rows(3).Cells.Merge
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to edit the "Format" and the "show level" of an EXISTING table of content? Jamal NUMAN Word 2 08-14-2011 10:46 AM
Creating "odd shaped" Table "Table of content" based on "Normal Style" behavior!!!! Jamal NUMAN Word 4 07-08-2011 04:12 AM
Creating "odd shaped" Table How to know the "format" of the "table of content"? Jamal NUMAN Word 2 07-08-2011 02:24 AM
How to have colons (:) in the "Table of content" but to be hidden in the "Heading"? Jamal NUMAN Word 0 06-26-2011 04:53 PM
Creating "odd shaped" Table Why the "table of contents" doesn't take the same format of the "headings"? Jamal NUMAN Word 5 06-15-2011 10:14 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 04:08 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft