automatic both sides printing

M

mailman

Xp home Offiice 97. My printers does not support automatic both side printing since I got XP. Any macro available to do that for me Please. Otherwise I have to keep remembering to reverse printing pages every time
 
M

mailman

this does not seem to work for me, it stop somewhere telling me that only comments can be put after end sub and I am afraid to touch that long one, not experimented enough.
 
J

Jonathan West

mailman said:
this does not seem to work for me, it stop somewhere telling me that only
comments can be put after end sub and I am afraid to touch that long one,
not experimented enough.

It's not a lot of help to say "it stop somewhere". Could you tell me where,
and exactly what the error message was?
 
M

mailman

sorry but that is where it sto

Private Declare Function ClosePrinter Lib "winspool.drv"
(ByVal hPrinter As Long) As Lon

and the error is " Only cooment may appear after End Sub End function and End property
and to me it is not the case but may be it is way over my knowledge. Thank
 
A

AA

the error is " Only comment may appear after End Sub End function and End property"


Look carefully, you have a command after the End Sub statement. Or you have an End
Sub statement in the middle of the macro. The only thing that can be after and End
Sub is a comment, which starts with a ' (apostrophe).
 
P

Peter Hewett

Hi mailman

The Declare statement *must* be before any Sub/Function/Property statements.

HTH + Cheers - Peter
 

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