Reply
 
Thread Tools Display Modes
  #1   Report Post  
Doug
 
Posts: n/a
Default

I am having a similar problem!
The macro TablesToText() almost does the trick but....

The result using a 3x2 table is similar to this:
(Cell1,Cell2,Cell3, etc are just prior to the end-of-cell marker in each
cell)

This is line one

Line two

Line three

Cell1 This is line one

Line two

Line three

Cell2 This is line one

Line two

Line three

Cell3

This is line one

Line two

Line three

Cell4 This is line one

Line two

Line three

Cell5 This is line one

Line two

Line three

Cell6



Note: Cell 1 and Cell2 are separated by a Tab but Cell 3 is NOT. Cell 3
runs together with Cell4.



What modification is needed to the macro to get a Tab to separate the last
cell in a row from the first cell in the next row?


Sub TablesToText()
While ActiveDocument.Tables.Count
ActiveDocument.Tables(1).ConvertToText _
Separator:=wdSeparateByTabs, _
NestedTables:=True
Wend
End Sub

Thanks
Doug


Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I tie Table Numbers to references in the text? Tim Tables 4 May 6th 23 08:49 PM
Resources for Long Document Management Jason Langkamer-Smith Microsoft Word Help 9 January 17th 05 08:17 PM
Any way to link text with Figure or Table number? Richard Stanford Microsoft Word Help 1 January 4th 05 02:32 PM
Outline Renee Hendershott Page Layout 2 December 25th 04 02:49 PM
Word 2003 Table AutoFormat vs Macro vs VBA Kind writer/user/programmer Tables 1 October 28th 04 03:14 PM


All times are GMT +1. The time now is 11:36 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"