Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form field Question - Carriage Returns

Status
Not open for further replies.

Cort

MIS
Apr 16, 2002
154
US
Word 97

This is the code I'm currently using:

Code:
 Private Sub UserForm_Initialize()
  Combobox3.ColumnCount = 1

  'Load data into ComboBox

  Combobox3.List() = Array("", vbCr & vbCr & "yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda yadda ")
  

End Sub

Private Sub Cmdclose_Click()

  Unload Me

End Sub
Private Sub ComboBox3_Change()

   ActiveDocument.FormFields("Dec").Result = Combobox3.Value
Unload Me
End Sub

What I have is a paragraph that could be empty (the "") or have a new paragraph and a statement (the 2 carriage returns and the yadda yadda yaddas).

My problem is that when you select the statement I get the 2 new lines like i want but it also indents the yadda yadda yadda. I want the statement left justified just like the rest of the document.

What it looks like:
Code:
    yadda yadda yadda yadda yadda yadda yadda yadda yadda

What I want it to look like:
Code:
yadda yadda yadda yadda yadda yadda yadda yadda yadda

Any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top