Selecting printer address

mtheriault2000

Well-known Member
Joined
Oct 23, 2008
Messages
826
Hello

I need to print either to the printer and to the a PDF printer. Since the printer address is changing on every power on, i need to found the PDF one

I got an idea to find it, but dont know how to do it

Loop trough the list of printer.
Put result in Printernameaddress
Instr(PDF, printernameadress)
next

Actually, i get the active printer when XL open.

How could i loop trought the printer list????

Martin
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
why can you not just set the default printer in windows? If it changes everytime you power the computer on, you might want to address that issue, rather than running a macro in excel to try and change it everytime.
 
Upvote 0
Hello Ajetrumpet

I want to print to my regular printer as a reference and print to a PDF as a record file

So that's why i need to find the printer address. I want it done without my intervention, IE: automatiquely

Have a great day

Martin
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,172
Members
448,870
Latest member
max_pedreira

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top