trombonegirl
02-21-2009, 07:12 PM
Hi everybody - forgive my newbieness. I'm very much a beginner, and know what I want to do but don't know how to say it.
I need to add a column to the left and right side of every table in a document, and fill those cells with <tr> and </tr> (yes, I'm trying to add HTML code to a Word document).
As a bonus, it would be great to add <td> to the beginning of the other (original) cells in the table, and </td> to the end.
The trouble is, the tables are all sorts of different sizes. (If this has been answered elsewhere please feel free to send me a link. I've been looking all day and I'm just getting a bit desperate. :help)
I have a related question -- when using the For Each in a document, do you need to go to the top of the document first with the Selection.HomeKey Unit:=wdStory?
Dim docTable As Table
Selection.HomeKey Unit:=wdStory
For Each docTable In ActiveDocument.Tables
With docTable
I need to add a column to the left and right side of every table in a document, and fill those cells with <tr> and </tr> (yes, I'm trying to add HTML code to a Word document).
As a bonus, it would be great to add <td> to the beginning of the other (original) cells in the table, and </td> to the end.
The trouble is, the tables are all sorts of different sizes. (If this has been answered elsewhere please feel free to send me a link. I've been looking all day and I'm just getting a bit desperate. :help)
I have a related question -- when using the For Each in a document, do you need to go to the top of the document first with the Selection.HomeKey Unit:=wdStory?
Dim docTable As Table
Selection.HomeKey Unit:=wdStory
For Each docTable In ActiveDocument.Tables
With docTable