CustomLabel.DotMatrix Property

Word Developer Reference

True if the printer type for the specified custom label is dot matrix. False if the printer type is either laser or ink jet. Read-only Boolean.

Syntax

expression.DotMatrix

expression   A variable that represents a CustomLabel object.

Example

This example displays the name and printer type of the first custom mailing label.

Visual Basic for Applications
  Dim mlTemp As MailingLabel

Set mlTemp = Application.MailingLabel If mlTemp.CustomLabels.Count >= 1 Then If mlTemp.CustomLabels(1).DotMatrix = True Then MsgBox mlTemp.CustomLabels(1).Name & " is dot matrix" Else MsgBox mlTemp.CustomLabels(1).Name _ & " is laser or ink jet" End If End If

See Also