D
Dallas
Hey all,
I'd like to use the custom document properties to automate records for a
medical practice on things that don't change often. I'd like to set up a user
form to enter the data all at once rather than manually tab through the
properties one at a time. I can programmatically set the properties:
Sub CustomDocumentProperties()
With ActiveDocument.CustomDocumentProperties
.Add Name:="Allergies", _
LinkToContent:=False, _
Type:=msoPropertyTypeString, _
Value:="None"
.Add Name:="Meds", _
LinkToContent:=False, _
Type:=msoPropertyTypeString, _
Value:="Aspirin"
.Add Name:="Diagnosis", _
LinkToContent:=False, _
Type:=msoPropertyTypeString, _
Value:="Low Back Pain"
End With
End Sub
but I'm stuck on how to get it from a form. Thanks for any suggestions
I'd like to use the custom document properties to automate records for a
medical practice on things that don't change often. I'd like to set up a user
form to enter the data all at once rather than manually tab through the
properties one at a time. I can programmatically set the properties:
Sub CustomDocumentProperties()
With ActiveDocument.CustomDocumentProperties
.Add Name:="Allergies", _
LinkToContent:=False, _
Type:=msoPropertyTypeString, _
Value:="None"
.Add Name:="Meds", _
LinkToContent:=False, _
Type:=msoPropertyTypeString, _
Value:="Aspirin"
.Add Name:="Diagnosis", _
LinkToContent:=False, _
Type:=msoPropertyTypeString, _
Value:="Low Back Pain"
End With
End Sub
but I'm stuck on how to get it from a form. Thanks for any suggestions