Open Word, turn on the macro recorder then create a table and add some rows
to it. Turn the macro recorder off. Go to edit macro and your code will be
there. Copy and paste it into Access. This is a good start but you will need
to do some tweaking to make it work in Access.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com
www.pcdatasheet.com
> Normally I automate to word from Access and insert data in the word document
> at specified bookmarks.
[quoted text clipped - 13 lines]
> Jesper Fj?lner
> Denmark
Jesper Fj?lner - 04 Mar 2005 17:58 GMT
> Open Word, turn on the macro recorder then create a table and add some rows
> to it. Turn the macro recorder off. Go to edit macro and your code will be
> there. Copy and paste it into Access. This is a good start but you will need
> to do some tweaking to make it work in Access.
Thanks, I'm trying that right now. The word object model isn't that easy to
figure out.
I'm doing it with early binding while I'm programming in order to have
intellisense.
Hopefully I'll be able to convert to late binding when it works.
PC Datasheet - 04 Mar 2005 18:32 GMT
Look at the CreateObject method in the Access Help file for late binding.
--
PC Datasheet
Your Resource For Help With Access, Excel And Word Applications
resource@pcdatasheet.com
www.pcdatasheet.com
> > Open Word, turn on the macro recorder then create a table and add some
> rows
[quoted text clipped - 8 lines]
> intellisense.
> Hopefully I'll be able to convert to late binding when it works.