
|
MS Word and Find macro
I am trying to write a macro(vba) which looks for 3 to 4 words on a page and if they are there, macro should print just that page. Printing just that page is a problem. Any suggestions?
Ram Lal
Friday, February 6, 2004
Did you try setting Range:=wdPrintCurrentPage?
Kero
Friday, February 6, 2004
Yup ...
here is the printing bit ... do you see anything that would prevent printing only current page.
Application.PrintOut FileName:="", Range:=wdPrintCurrentPage, Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
Collate:=True, Background:=True, PrintToFile:=False, PrintZoomColumn:=0, _
PrintZoomRow:=0, PrintZoomPaperWidth:=0, PrintZoomPaperHeight:=0
Selection.GoTo What:=wdGoToPage, Which:=wdGoToNext, Count:=1, Name:=""
Ram Lal
Friday, February 6, 2004
Maybe try cutting out
Pages:=""
and see what happens. What exactly is happening? Nothing prints? The whole thing prints? You get an error?
Kyralessa
Friday, February 6, 2004
I will try that ... problem is, it prints pne page after and before the "current page".
Ram Lal
Monday, February 9, 2004
So...any luck?
Kyralessa
Tuesday, February 10, 2004
Recent Topics
Fog Creek Home
|