I need to create in automatic a new document through VB
code. The document text is a merge between text and
variables that I get from a database.
I have some trouble to format text and put it in the right
position, chosing fonts, and so on.
Has anybody an example that create a document from scratch?
Thanks for your help.
Marco

Re: An example to automatically create a document in Word by Peter

Peter
Fri Feb 20 04:05:51 CST 2004

Hi Marco

Check out the following link, everything is from a VBA perspective - but it
deals with how to insert data in a form into a document:

http://word.mvps.org/FAQs/Userforms/index.htm

HTH + Cheers - Peter

"Marco" <marco.foldes@sinternet.it> wrote in news:13d1b01c3f794$7c0c0990
$a501280a@phx.gbl:

> I need to create in automatic a new document through VB
> code. The document text is a merge between text and
> variables that I get from a database.
> I have some trouble to format text and put it in the right
> position, chosing fonts, and so on.
> Has anybody an example that create a document from scratch?
> Thanks for your help.
> Marco
>