M
Montana DOJ Help Desk
Word 2000
I've built a user form that contains a text box. I have the following code
to initialize a couple of values in the user form:
Private Sub UserForm_Initialize()
lblErrorMessage.Caption = ErrMsg
tbDataClip.Value = cbDataClip
End Sub
This basically works, but I've run into one small hitch that I can't seem to
solve. I would like the text box to display data like the following example
(Note that this is a test record, and not live data):
M*HR.MTHOT0000.MT0000000.*ABCTSTIUL9.
MONTANA HOT FILE RESPONSE FOR LOCATE OF:
NAM/TEST, RECORD.OCA/TESTABC.DOR/20040812.LAC/TESTTOM.DSP/EXTR
LOCATED RECORD NOTIFICATION
MKE/LOCATED MONTANA WANT
ORI/MT0000000
NAM/TEST, RECORD DOB/19700101
SEX/M RAC/W HGT/600 WGT/210 HAI/BRO
DOW/20040812 OCA/TESTABC OFF/2002 ARSON-RESIDENCE-ENDANGERED LIFE
MIS/TEST RECORD
LOCATED/20040812 MT025015Y TESTTOM EXTR
MIN/W320581 DTE/20040812
MRI 448220 IN: MTSF 6933 AT 12AUG2004 22:29:53 OUT: JLET00 537 AT
12AUG2004
22:29:53
Instead, the text box is displaying the data as a single unbroken row, with
the paragraph markers visible in the data string. I made sure that the Word
Wrap property of the text box is enabled. Is there some way to pass the
data to the text box so that the text box displays the data with the layout
intact?
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."
I've built a user form that contains a text box. I have the following code
to initialize a couple of values in the user form:
Private Sub UserForm_Initialize()
lblErrorMessage.Caption = ErrMsg
tbDataClip.Value = cbDataClip
End Sub
This basically works, but I've run into one small hitch that I can't seem to
solve. I would like the text box to display data like the following example
(Note that this is a test record, and not live data):
M*HR.MTHOT0000.MT0000000.*ABCTSTIUL9.
MONTANA HOT FILE RESPONSE FOR LOCATE OF:
NAM/TEST, RECORD.OCA/TESTABC.DOR/20040812.LAC/TESTTOM.DSP/EXTR
LOCATED RECORD NOTIFICATION
MKE/LOCATED MONTANA WANT
ORI/MT0000000
NAM/TEST, RECORD DOB/19700101
SEX/M RAC/W HGT/600 WGT/210 HAI/BRO
DOW/20040812 OCA/TESTABC OFF/2002 ARSON-RESIDENCE-ENDANGERED LIFE
MIS/TEST RECORD
LOCATED/20040812 MT025015Y TESTTOM EXTR
MIN/W320581 DTE/20040812
MRI 448220 IN: MTSF 6933 AT 12AUG2004 22:29:53 OUT: JLET00 537 AT
12AUG2004
22:29:53
Instead, the text box is displaying the data as a single unbroken row, with
the paragraph markers visible in the data string. I made sure that the Word
Wrap property of the text box is enabled. Is there some way to pass the
data to the text box so that the text box displays the data with the layout
intact?
-- Tom
State of Montana
Department of Justice Help Desk
"Making the world a safer place."