Just received a new computer going from XP and Office 2003 to Win7 and Office 2007, looks like I have a lot to learn/relearn. Anyway, I managed to bring over an excel file and access file and got the references changed (or so I thought). Now when I try to print, I'm using code provided by 'Programmatically create a PDF from Access 2002
thread707 -1119207'
The code stops at this line:
Application.ActivePrinter = "Adobe PDF on Ne03:"
so I looked at the properties of Active Printer and saw it was now Ne01, so I changed Ne03 to Ne01, but still doesn't work. The error message is:
Run-time error '1004' Method 'ActivePrinter' of object '_Application' failed
Does the code need to be changed more substantially for Windows7 and Office 2007? I am using similar code in both Excel and Access.
Thanks.
thread707 -1119207'
The code stops at this line:
Application.ActivePrinter = "Adobe PDF on Ne03:"
so I looked at the properties of Active Printer and saw it was now Ne01, so I changed Ne03 to Ne01, but still doesn't work. The error message is:
Run-time error '1004' Method 'ActivePrinter' of object '_Application' failed
Does the code need to be changed more substantially for Windows7 and Office 2007? I am using similar code in both Excel and Access.
Thanks.