+ Reply to Thread
Results 1 to 7 of 7

Paragraph mark (pilcrow) is automatically converted to a line feed

  1. #1
    Registered User
    Join Date
    04-11-2014
    Location
    Yerevan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Paragraph mark (pilcrow) is automatically converted to a line feed

    Dear community, can anyone help me with the following problem:

    I have linked combobox from the excel userform (through ControlSource property) to the cell in the sheet. The combobox fails to maintain the pilcrow character ( ¶ - char(182) ), it somehow becomes the line feed character ( char(10) ) changing the intended value of the combobox and the linked cell. How can I prevent this behavior and keepthe pilcrow character in the combobox (BTW multi-line textboxes don't have such behavior).
    I desperately need exactly the char(182) to be acceptable also in comboxes (due to specific typesetting).

    Thanks!

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Paragraph mark (pilcrow) is automatically converted to a line feed

    Have you tried not using ControlSource and putting the value from the textbox into the cell using code?

    You might also want to format the destination cell as Text before putting anything in it.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    04-11-2014
    Location
    Yerevan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Paragraph mark (pilcrow) is automatically converted to a line feed

    Thanks for the suggestion.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Paragraph mark (pilcrow) is automatically converted to a line feed

    Does it work?

  5. #5
    Registered User
    Join Date
    04-11-2014
    Location
    Yerevan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Paragraph mark (pilcrow) is automatically converted to a line feed

    No, unfortunately it doesn't work. I have tried to set the value of the cell through both .text and .value properties of the combobox, but it continues to mess with the pilcrow character and again converts it into the line feed.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Paragraph mark (pilcrow) is automatically converted to a line feed

    How are you entering the character and how are you transferring the contents of the textbox to the works?

    Any chance you could upload a sample workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

  7. #7
    Registered User
    Join Date
    04-11-2014
    Location
    Yerevan
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Paragraph mark (pilcrow) is automatically converted to a line feed

    I type the character through keyboard, like this: ¶. It works when I directly type into the cell and it evaluates to char(182).

    Please Login or Register  to view this content.

    Interestingly, when I open the form for editing combobox converts back the linefeed from the cell to the pilcrow again. And so on.

+ 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. [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
  2. How to mark a line crossover point on a chart automatically?
    By lalakis1 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 12-03-2012, 05:26 AM
  3. Replies: 2
    Last Post: 12-02-2012, 07:30 PM
  4. Removing a paragraph mark
    By dasrocko in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-07-2010, 01:11 PM
  5. removing paragraph mark
    By rbyrd023 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-01-2010, 03:13 PM
  6. Replies: 8
    Last Post: 11-07-2008, 09:26 AM
  7. Line Feed
    By Nigel Bennett in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-18-2005, 10:06 AM

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