Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open word and merge

Status
Not open for further replies.

jass1220

Programmer
May 20, 2003
88
AE
am using this code to open a word document its working, the word doc am openning is merged doc ... when it opens it i have to choose what type of merge i want
1.new document
2.to Printer
3.electronic mail

i want it to be merged to new document from vb with out the user chooses

///////////////

Dim x As Word.Application
Dim y As Word.Document
Set x = New Word.Application
Set y = x.Documents.Open(App.Path & "\newconformation.doc")
x.Visible = True

 
The easiest way to see how Word does it's tricky bits is to record a macro for what you want to do, then go into the editor and copy code from there. You will just need to change document references etc., but it gives you a good start


________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'People who live in windowed environments shouldn't cast pointers.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top