Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
'Declare vars
Dim WshNetwork As Object
Dim i As Integer
Dim sMyDesiredPrinter As String
' Set desired printer name
sMyDesiredPrinter = "MyPrinterName"
' Create network object
Set WshNetwork = CreateObject("WScript.Network")
' Loop printers
For i = 0 To WshNetwork.EnumPrinterConnections.Count - 1 Step 2
' If desired printer found, set to default
If WshNetwork.EnumPrinterConnections.Item(i + 1) = sMyDesiredPrinter Then
Call WshNetwork.SetDefaultPrinter(sMyDesiredPrinter)
End If
Next
Set WshNetwork = Nothing