Neal
Fri Jul 02 07:30:02 CDT 2004
Here is the line that is going bad, it returns a zero code.
'Send the new details to the printer
iRet = SetPrinter(hPrinter, 2, yPInfoMemory(0), 0)
"Jonathan West" wrote:
>
> "Neal" <Neal@discussions.microsoft.com> wrote in message
> news:DCB3FE76-4B4F-444D-A9BD-4681E34720DE@microsoft.com...
> > I hope Jonathan West is reading this, I am trying to use your VBA code you
> have posted. It runs through all the code with no errors when I step
> through but when it is finished the duplex code has not changed. I am using
> a Lexmark T622.
> >
> > Thanks for any help you can give me.
>
> Have you installed a local copy of the printer driver on the PC you are
> running this code on?
>
> --
> Regards
> Jonathan West - Word MVP
> www.intelligentdocuments.co.uk
> Please reply to the newsgroup
>
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (
http://www.grisoft.com).
> Version: 6.0.713 / Virus Database: 469 - Release Date: 30/06/2004
>
>