+ Reply to Thread
Results 1 to 15 of 15

Paragraph Mark appears in textbox

  1. #1
    Registered User
    Join Date
    03-07-2017
    Location
    Stockport, England
    MS-Off Ver
    2007
    Posts
    91

    Paragraph Mark appears in textbox

    Hi Guys,
    I seem to have a paragraph mark appearing in a userforms textbox which is set to retrieve data from one worksheet and insert into another. When I insert the retrieved data via the user form with the textboxes into the worksheet the data is disjointed and skips rows, if I remove the paragraph mark from the end of the data in the textbox it inputs into the worksheet fine but it is a niggle I have to remove. I think it has something to do with the format but I just cant find the solution. I would appreciate some help. Thanks in advance

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Paragraph Mark appears in textbox

    Hi,

    It sounds like you have a linefeed character in there. How is the data from the first worksheet loaded into the userform?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    03-07-2017
    Location
    Stockport, England
    MS-Off Ver
    2007
    Posts
    91

    Re: Paragraph Mark appears in textbox

    Hi xlnitwit,

    I have attached the invoice with the userform. It is user form ClientInvShpInputForm that retrieves the data from another workbook. I can't attach that as it has client details in it.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    03-07-2017
    Location
    Stockport, England
    MS-Off Ver
    2007
    Posts
    91

    Re: Paragraph Mark appears in textbox

    Just looked up what a linefeed is and yes. When the data inputs into the worksheet 'salesinvoice' the data drops to the next row. It also misses out a line of text. In a couple of cases it drops several rows.

  5. #5
    Registered User
    Join Date
    03-07-2017
    Location
    Stockport, England
    MS-Off Ver
    2007
    Posts
    91

    Re: Paragraph Mark appears in textbox

    Hmmn further developments it appears to only happen to clients which have other references in their address Such as 'U.099', ' Unit E17', 'SU255 Level 1'. Could excel be trying to interpret these and attempt to do something with them which ends up being a linefeed?

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Paragraph Mark appears in textbox

    Do the addresses for those clients appear on multiple lines in one cell in the source workbook?

  7. #7
    Registered User
    Join Date
    03-07-2017
    Location
    Stockport, England
    MS-Off Ver
    2007
    Posts
    91

    Re: Paragraph Mark appears in textbox

    Each client is on a separate row and each line of the address is in a separate column.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Paragraph Mark appears in textbox

    Mark Dynes
    Paragraph Mark appears in textbox
    It happens when MultiLine property of textbox set to False.

  9. #9
    Registered User
    Join Date
    03-07-2017
    Location
    Stockport, England
    MS-Off Ver
    2007
    Posts
    91

    Re: Paragraph Mark appears in textbox

    Hi Jindon, thanks for this. This did remove the paragraph mark but for some reason the input data still removes the first line of the address as it did before. Any thoughts?

  10. #10
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Paragraph Mark appears in textbox

    Setting the Multiline property does not remove the mark, it merely suppresses its display. There must be a line feed character in the underlying data.

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Paragraph Mark appears in textbox

    Check "wrap text" in the cell?

  12. #12
    Registered User
    Join Date
    03-07-2017
    Location
    Stockport, England
    MS-Off Ver
    2007
    Posts
    91

    Re: Paragraph Mark appears in textbox

    I thought that it might have just suppressed it but I can't find any line feed character in the data!! It happens on some and not on others and the cell formats all match throughout the worksheet. I have tried to copy and then paste just the values into a new worksheet and I still get the same issue??

  13. #13
    Registered User
    Join Date
    03-07-2017
    Location
    Stockport, England
    MS-Off Ver
    2007
    Posts
    91

    Re: Paragraph Mark appears in textbox

    Yup thanks, checked that and the text is not wrapped in any cells.

  14. #14
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Paragraph Mark appears in textbox

    If you don't have enough height for multi lines in a cell, it only displays one line...

  15. #15
    Registered User
    Join Date
    03-07-2017
    Location
    Stockport, England
    MS-Off Ver
    2007
    Posts
    91

    Re: Paragraph Mark appears in textbox

    Ok fixed it, thanks for your help. The worksheet I was taking data from had multi lines in the cell but the sheet I was sending the data to did not. Another glitch 'bytes' the dust

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Paragraph mark (pilcrow) is automatically converted to a line feed
    By BookNote in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-19-2015, 02:05 PM
  2. Need to Mark an Item if it appears on another page as well
    By phillyfan in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2015, 08:10 PM
  3. [SOLVED] Using Tab key within userform TextBox to tab to new line or paragraph
    By Twaddy006 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-09-2014, 05:29 PM
  4. [SOLVED] Mark Y/N if text appears in another column
    By KMorris10 in forum Excel General
    Replies: 8
    Last Post: 04-05-2012, 10:25 PM
  5. Removing a paragraph mark
    By dasrocko in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-07-2010, 01:11 PM
  6. removing paragraph mark
    By rbyrd023 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2010, 03:13 PM
  7. Mark Where A Phrase Appears Twice
    By SamuelT in forum Excel General
    Replies: 3
    Last Post: 03-13-2007, 12:19 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1