excel macro to print word document

  • Thread starter Thread starter rookie_2468
  • Start date Start date
R

rookie_2468

Is there a way to use an excel macro to print an MS Word Document? I a
currently using a button to print various worksheets within the sam
excel spreadsheet. However, the formatting of the text is not quite a
nice as what is available in word.
At the moment, I am using the link function to export to my informatio
to the various MS Word files I require (maybe not all that efficient bu
functional none the less). What I am trying to do is print all of thos
documents with the button I created in Excel. Switching to Word an
running the print command is too time consuming.
Is there a way to use the macro buttons to do this.
I have read many of the similar threads, but to date, none have helpe
me solve my question.

Thanks in advance for any help
 
Hi

Try something like this

Sub test()
Dim WD As Object
Set WD = CreateObject("Word.Application")
WD.Documents.Open ("C:\ron.doc")
WD.ActiveDocument.PrintOut Background:=False
WD.ActiveDocument.Close
WD.Quit
Set WD = Nothing
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top