Share via


Application.AvailablePrinters Property

Visio Automation Reference

Returns a list of installed printers. Read-only.

Version Information
 Version Added:  Visio 2002

Syntax

expression.AvailablePrinters

expression   A variable that represents an Application object.

Return Value
String()

Example

The following Microsoft Visual Basic for Applications (VBA) macro shows how to use the AvailablePrinters property to get a list of available printers.

Visual Basic for Applications
  Public Sub AvailablePrinters_example()
Dim aStrPrinters() As String
Dim strPrinter As Variant

aStrPrinters = Application.AvailablePrinters

For Each strPrinter In aStrPrinters

    Debug.Print strPrinter

Next

End Sub

See Also