How do i set this code to change the "default" printer instead of manually configuring the printer name?
VBA Code:
Sub prit()
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colInstalledPrinters = objWMIService.ExecQuery _
("Select * from Win32_Printer Where Name = 'ET0021B73612A4'")
For Each ObjPrinter In colInstalledPrinters
ObjPrinter.resume
Next
End Sub