Hi! Everybody
I'm a new user in excel vba. Anyone can help me?
With excel , I want to print the second page of a 5 pages word document
Sub Macro1()
Dim objWord
Dim objDoc
Set objWord = CreateObject("Word.Application")
Set objDoc = objWord.Documents.Open("c:\xxx.doc")
objWord.Visible = True
objDoc.PrintOut Pages:="2"
objWord.Quit
End Sub
What's wrong with the above ?
It printed all the pages, not the second.
Thanks!
Bookmarks