C
cmledbetter
I have an online form that is 12 pages but will need to print pages 1-9
(ending number may vary) then always print pages 10-12. I can have a user
form to determine the ending point for the first part of my pages string but
I am not sure the correct coding statement and syntax to substitute in the
following line of code found from Doug Robbin
ActiveDocument.PrintOut Range:=wdPrintFromTo, From:="1", To:="5"
I am planning to hijack the PrintOut and wdDialogFilePrint calls to insert
the correct code to just print my requested pages.
I think something likethis may work but not so far:
ActiveDocument.PrintOut Range:=wdPrintPages, (1-vPrintPages,10-12)
cannot get this to work but also cannot find documentation to help with
syntax.
One last part I would also like for my pages x of y to reflect the correct
pages once the pages are omitted.
Advice Appreciated
(ending number may vary) then always print pages 10-12. I can have a user
form to determine the ending point for the first part of my pages string but
I am not sure the correct coding statement and syntax to substitute in the
following line of code found from Doug Robbin
ActiveDocument.PrintOut Range:=wdPrintFromTo, From:="1", To:="5"
I am planning to hijack the PrintOut and wdDialogFilePrint calls to insert
the correct code to just print my requested pages.
I think something likethis may work but not so far:
ActiveDocument.PrintOut Range:=wdPrintPages, (1-vPrintPages,10-12)
cannot get this to work but also cannot find documentation to help with
syntax.
One last part I would also like for my pages x of y to reflect the correct
pages once the pages are omitted.
Advice Appreciated