L
Lenny
Am developing a Word 2003 protected template. Scenario: the template is a
business card request form. When the user selects their facility from a
dropdown in one of the form fields, I would like to populate a 'dummy' of the
card I have created with the 'plant name' and below that, the three line
plant address.
Using the select case works very well, but was wondering whether there was a
way I could break the plant information into the requisite number of lines?
Is there a different or better way to accomplish the same? See example...
Example:
Sub FillInAddress()
Dim oDoc As Document
Dim sigName As String
Set oDoc = ActiveDocument
sigName = oDoc.FormFields("Dropdown1").Result
Select Case sigName
Case "Plant 1"
oDoc.FormFields("Text1").Result = "Name of Facility, Street Address -
City, State, Zip Code USA"
This prints out in 1-line but need to have it replicated in the dummy form as:
Name of Facility
Street Address
City, State, Zip Code USA
business card request form. When the user selects their facility from a
dropdown in one of the form fields, I would like to populate a 'dummy' of the
card I have created with the 'plant name' and below that, the three line
plant address.
Using the select case works very well, but was wondering whether there was a
way I could break the plant information into the requisite number of lines?
Is there a different or better way to accomplish the same? See example...
Example:
Sub FillInAddress()
Dim oDoc As Document
Dim sigName As String
Set oDoc = ActiveDocument
sigName = oDoc.FormFields("Dropdown1").Result
Select Case sigName
Case "Plant 1"
oDoc.FormFields("Text1").Result = "Name of Facility, Street Address -
City, State, Zip Code USA"
This prints out in 1-line but need to have it replicated in the dummy form as:
Name of Facility
Street Address
City, State, Zip Code USA