Hi,
I'm having difficulties setting the default printer in an Excel workbook where I want to automate printing to a specific network printer.
The problem I have is that although I can successfully query the current network printers using EnumPrinters I can't manage to consistently set it using Application.ActivPrinter because the network extension "on NExx" changes from workstation to workstation. Also I trid to reference this by using a counter as I queried the printers but found that if a printer had been deleted before the requird network printer was required then it left a gap in the list eg. 1,2,3,5,6 etc.
I hope I haven't over complicated my description.
Cheers
D
I'm having difficulties setting the default printer in an Excel workbook where I want to automate printing to a specific network printer.
The problem I have is that although I can successfully query the current network printers using EnumPrinters I can't manage to consistently set it using Application.ActivPrinter because the network extension "on NExx" changes from workstation to workstation. Also I trid to reference this by using a counter as I queried the printers but found that if a printer had been deleted before the requird network printer was required then it left a gap in the list eg. 1,2,3,5,6 etc.
I hope I haven't over complicated my description.
Cheers
D