Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > Word VBA
|
Word VBA Discuss using VBA to program Word.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Word VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 16th, 2007, 07:22 PM
Registered User
 
Join Date: Aug 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default [Word] 2003 VBA - Absolute Row/Col in Tables with

I need to validate the structure of a Word table in a document using VBA. For example, assume there is a 4x4 table with the middle 4 cells merged I need to determine for EVERY cell:
   the staring ABSOLUTE row, column,
   the number of horizontal merged cells,
   the number of vertical merged cells

Does anyone know how to get this information?

With this I can determine if the table is the correct format and in what cell I will find the information I need to extract for the rest of the process.

Given the example above, the merged cells would report:
   row 2, column 2, vertical 2, horizontal 2

The next cell on row 2 would report:
   row 2, column 4, vertical 1, horizontal 1

What I know:
   I know how to select row/columns, how to find out row size, max table size, and all the obvious stuff. I have tried the .Information() options, .Rowindex, etc. But to no avail - I still can't programatically determine what I need to do the validation.

Am I missing something in the object model? Consider the following questions:

1) How does Word get it right when you select/copy/paste-to-Notepad a column that has merged cells.
2) Do you know of any properties that will fail on a merged cell tat can be trapped with "On error" to detect which cells are merged.


ABSOLUTELY Troubled,

GeoBoater





Similar Threads
Thread Thread Starter Forum Replies Last Post
Office 2003 absolute minimum w/VSTO? cjkoontz Visual Studio 2005 0 October 16th, 2008 10:36 AM
word 2003 vba joukaniabhay VB How-To 0 February 15th, 2005 07:33 PM
Read a column and Search Row by Row in another col AyatKh Excel VBA 2 January 26th, 2005 12:02 PM
Word 2003 bmains ASP.NET 1.0 and 1.1 Professional 0 May 2nd, 2004 06:40 PM
Invoking Word 2003 document from InfoPath 2003 debsoft General .NET 0 April 28th, 2004 08:17 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.