How to create a word new document(.doc) through VB?. VBA

How to create a  new word document(.doc) through VB?.

if anyone knows please help me.

Advanced  thanks,

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

   Dim newApp As Object  
    Set newApp = CreateObject("Word.Application")
    newApp.Visible = True

You can also just use

   Dim newApp As Word.Application

...but you'd need to include the Microsoft Word object library in your application.

Now, the only question is... what do you want to do with the new document?

Some additional thoughts:
If you want to work further with your newly created document, I'd advise to create an object for that document, too.

After including the library like g. said, use the following code example:

Sub UseWord()
   Dim WdApp As Word.Application, WdDoc As Word.Document
   Set WdApp = CreateObject("Word.Application")
   WdApp.Visible = True
   Set WdDoc = WdApp.Documents.Add  'up to here the same as g.
   With WdDoc
      'Do what you want with the document
      .Range.Text = "That's a new document..."
   End With
   'Some cleanup, you could close Word via WdApp.Quit if you like, or save the doc
   Set WdDoc = Nothing
   Set WdApp = Nothing
End Sub
If you just need to create a new document and no further editing of it, why don't you just put an empty document in your app path and then let it copy to where ever you want to be 'created'.
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
merlin_vb, an EE Moderator will handle this for you.
Moderator, my recommended disposition is:

    Save as PAQ -- No Refund.

DanRollins -- EE database cleanup volunteer
Question is PAQ'd and no points refunded.

Community Support Moderator @Experts Exchange

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.