Results 1 to 4 of 4

Thread: Clearing text format in Rich Text Box.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2009
    Posts
    64

    Clearing text format in Rich Text Box.

    Hello guys,

    How can I clear text format in Rich Text Box.

    Example:

    Sample to Sample
    Sample to Sample

    Someting like that.

    Thanks

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Clearing text format in Rich Text Box.

    select the entire text, then set all the sel options to false
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    Member
    Join Date
    Jan 2012
    Posts
    47

    Re: Clearing text format in Rich Text Box.

    Has anyone made a thread describing how to do the opposite?

    I.e you have a word document with various rich text in it, I want to be able to convert that backwards into the html code. At the same time I dont want any of the strange html that come in a word doc (i.e <span>).

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: Clearing text format in Rich Text Box.

    i have posted a module i use in the vb6 forum

    it converts richtext from a richtextbox to html code, for emailing, you should be able to make it work as you want with some modifications

    see this thread for some links
    http://www.vbforums.com/showthread.p...rich+text+html
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

Posting Permissions

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



Click Here to Expand Forum to Full Width