Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
True if the various properties (for example, Height, Width, and NumberDown) for the specified custom label work together to produce a valid mailing label. Read-only Boolean.
Syntax
expression. Valid
expression A variable that represents a 'CustomLabel' object.
Example
If the settings for the custom label named "My Labels" are valid, this example creates a new document of labels using the My Labels settings.
addr = "James Allard" & vbCr & "123 Main St." & vbCr _
& "Seattle, WA 98040"
If Application.MailingLabel.CustomLabels("My Labels") _
.Valid = True Then Application.MailingLabel.CreateNewDocument _
Name:="My Labels", Address:=addr
End If
See also
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.