Edit

Share via


CustomLabel.DotMatrix property (Word)

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.

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

CustomLabel Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.