print current page problem

K

kurt

Hello,

I have written two macros which should print the current
page, but on certain documents, the entire document is
printed when activating the macro. ANY HELP on the vba
code to ensure that the current page ONLY will print?

THANKS!!

KUrt
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < kurt > écrivait :
In this message, < kurt > wrote:

|| Hello,
||
|| I have written two macros which should print the current
|| page, but on certain documents, the entire document is
|| printed when activating the macro. ANY HELP on the vba
|| code to ensure that the current page ONLY will print?
||

Posting the code would go a long way to make sure that you get a proper
response...
(And why do you have 2 macros to do the same job?)

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
[email protected]
Word MVP site: http://www.word.mvps.org
 
G

Guest

Bonjour,

Ou etes-vous? J'ai vecu a Paris pendant 2 ans, et je
parle pas mal le francais.

The 2 macros are actually a bit different. One should
print just the current page of any document. The other is
using the print current page code to print the first page
of a document which the macro is also formatting for some
other things. The codes

Sub PrintCurrentPage()
ActiveDocument.PrintOut _
Range:=wdPrintCurrentPage, _
Background:=False
End Sub

are not working. Any other ideas? Also, can you help me
with the codes to print a specific page? ie. page 2?

Merci bien.

Kurt
 
Top