Print current page macro not working

M

Mike

The procedure to print the current page works about half the time, the other
half of the time it's printing the entire document. I cannot find any common
denominator on the documents that don't work. The procedure is very basic:

ActiveDocument.PrintOut Range:=wdPrintCurrentPage

Any ideas on what might be causing this problem (or where to look) would be
appreciated.

Mike
 
B

Bob I

You could try replacing "wdPrintCurrentPage" with the "2" that is the
Constant that it represents.

Since "wdPrintAllDocument = 0", the value 2 maybe not getting passed
into ActiveDocument.PrintOut Range:
 
M

Mike

That sounded like a great idea, but unfortunately it still is printing the
entire document (again, just for some documents). Any more ideas? TIA,

Mike
 
B

Bob I

Hunting clues next. Does it consistently do it the same on a particular
document? As in a particular doc will always print the whole thing? Are
the documents created in different versions of Word? What about the
default printer? Any correlation there? Does the behavior change form
one user to the next?
 
M

Mike

It does fail (or work) consistently on a few specific documents. The
documents do not appear to have any similiarities, however - I checked the
default printer and printer and page settings as well. I have not tried it
for different users yet, however. I will try that next - thanks!
 

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

Top