Hi there i have this piece of code:
This prints my excel document to pdf fine on Ne02. The problem i have is when the document is printed to pdf on a different pc the Ne is Ne04 or Ne03 so its different on each pc.Application.ActivePrinter = "Adobe PDF on Ne02:" ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= _ "Adobe PDF on Ne02:", Collate:=True
Is there a way the above code can be altered so it will print on any Ne02 or have the code search for which port Adobe PDF is installed on and print to that port so i dont have to have multiple sets of code.
Thanks.
Last edited by sandy.beach; 05-06-2009 at 02:13 PM.
ActiveWindow.SelectedSheets.PrintOut Copies:=1, ActivePrinter:= Application.ActivePrinter,Collate:=True
Thats brilliant, it works like a charm, but how would i get it to print to pdf rather than to my active printer, my adobe acrobat pdf printer is never set to the default and i need my physical printer needs to be my default.
Thanks
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks