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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. KatSoft

    Multi line textbox

    really nice Andy, but it's not resolving anything. In a textbox as well as in Word, I manage to filter out the needed characters for a new line : they both are vbCrLf (=Char13 + Char10) I simply do not succeed in inserting in a form field a text with multiple lines. I've tried ...
  2. KatSoft

    Multi line textbox

    Tony, the properties of the textbox do not influence anything. Even if I use simple code like : ActiveDocument.FormFields("ProdDescr").Result = "First line" & vbCrLf & "Second line" the text that arrives in the form field is not split into 2 lines. So the problem should be in the form...
  3. KatSoft

    Multi line textbox

    Tony, Thanks for the nice try but I'm sorry to tell you it does not work either. Instead of 2 squares in the text, I only have one but it still does not split my lines. I think the squares are Char(13) and Char(10) that do not get converted into their "command", being Carriage Return (Char13 or...
  4. KatSoft

    Multi line textbox

    to PHV Yes, I've tried the Replace function as well. The problem seems to be that you cannot write a vbCrLf to a formfield. I mean, you can write a new line to the field but it does not seems to actually create a new line. You just see "...line 1..." and "...line 2 ..." with 2 squares between...
  5. KatSoft

    Multi line textbox

    Etid, you might be right but it leaves the problem for me : How do I get the separate lines into the formfield on the document so that the line format is preserved? I could use the Split function to create the separate lines but how do I transfer them into the form field?
  6. KatSoft

    Grouping checkboxes so only one can be checked

    You could use this trick : in the AfterUpdate of all checkboxes, write some code to change the other checkbox. For example : the code for the first pair of checkboxes: Private Sub chkYes1_AfterUpdate() chkNo1.Value = Not(chkYes1.Value) End Sub Private Sub chkNo1_AfterUpdate()...
  7. KatSoft

    Multi line textbox

    This is the problem : I use a UserForm to gather information from the user. This information is typed into a textbox on the userform and the user can create multiple lines in that textbox. So far, no problems. The trouble starts when I write code in VBA to copy the content of that textbox...

Part and Inventory Search

Back
Top