WD2000: Table Jumps to Different Position Than Placed

J

jmartino

WD2000: Table Jumps to Different Position Than Placed

Hi all:

I am working on a word VBA macro that extracts data from
an Oracle Repository via an ODBC driver.

Some of the data must be formatted in tables.

The macro runs fine for about 50 pages, then the rest of
the data is written fine but the remainder of the tables
are all piled up at the end of the doc (?)

I am adding the tables as I go like this:

Set rng = ActiveDocument.Content
rng.Collapse Direction:=wdCollapseEnd
dim tbl as Table
Set tbl = ActiveDocument.Tables.Add(rng, 1, 7)

Please help, I am lost
 
C

Cindy M -WordMVP-

Hi (e-mail address removed),
The macro runs fine for about 50 pages, then the rest of
the data is written fine but the remainder of the tables
are all piled up at the end of the doc (?)
How do you mean "all piled up at the end of the doc"? On
top of one another?

If you make sure the tables don't have wrap formatting,
does that change anything?

tbl.Rows.WrapAroundText = false

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update
Jun 8 2004)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top