Thanks Dave. Finally managed to word is out anyway. For interest's sake (if
you are), one way of doing it is:
Set oTable = oDoc.Tables.Add(oDoc.Range(oDoc.Characters.Count - 1,
oDoc.Characters.Count - 1), oFields.RecordCount + 1, 3)
Gosh, this working on a Saturday lark is soooooooo exciting.
Mark
-----Original Message-----
From: dave sharpe [mailto:davesharpe2@c...]
Sent: 18 January 2003 14:48
To: professional vb
Subject: [pro_vb] Re: Word Object model
Mark
I don't know the answer; but if you are using Word2000,
the answer probably is in VBAWRD9.CHM
Dave
----- Original Message -----
From: "Mark Roworth" <mark.roworth@b...>
To: "professional vb" <pro_vb@p...>
Sent: Saturday, January 18, 2003 9:28 AM
Subject: [pro_vb] Word Object model
Hi group,
I am a little confused with the Word Object Model. I'm trying to create a
series of tables in Word. I just want to tack each table onto the end of the
Word document. I am using the following method at the moment:
Set oTable = oDoc.Tables.Add(oDoc.Range, oFields.RecordCount + 1, 3)
The first parameter is a Range (a concept I'm not too sure of). Is there a
property of the document that will return a range that indicates to insert
at the end of the document? Many thanks for any replies (especially on a
Saturday).
Mark Roworth
Dolphin Computing Ltd
01273 262865
mark.roworth@b...