Quote:
Originally Posted by macropod
As for the "multiple values separated by the "|" symbol," what are you trying to do with them? The code you're using was written around the idea that all the output would go into a single text content control, with line breaks between the values. If you want the various values separated by the "|" symbol to be output to different text content controls, rather different code would be needed. For example:
|
Am I correct in assuming that the following code snippet is what would actually populate the various CC's in my form?
Code:
For i = 0 To UBound(Split(StrDetails, "|"))
ActiveDocument.SelectContentControlsByTitle("Value" & i)(1).Range.Text = Split(StrDetails, "|")(i)
Next
If that is the case would the following hold true...
Code:
For i = 0 to UBound(Split(StrDetails, "|"))
ActiveDocument.SelectContentControlsByTag("Value" & i)(1).Range.Text = Split(StrDetails, "|")(i)
Next
...where each CC would have the tag "Value0, Value1, Value2..." and so on? Also, can I further assume this code would be placed in the userform and not the actual document?
I really appreciate the time you are taking to assist me in this matter. I'm learning a lot and I sincerely appreciate your continuing effort.