Results 1 to 5 of 5

Thread: [RESOLVED] removing of special characters

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2007
    Posts
    76

    Resolved [RESOLVED] removing of special characters

    We display an expression in excel , in which there are also some small boxes being diaplayed in expression.

    somes boxes are getting removed when we give
    replace(string1,vbnewline,"")
    but some are not.

    Are there any other keywords like vbnewline which displays small boxes, which when given will remove the small boxes

  2. #2
    Frenzied Member Spajeoly's Avatar
    Join Date
    Mar 2003
    Location
    Utah
    Posts
    1,068

    Re: removing of special characters

    Excel uses Chr(10) normally, but remove 10 & 13 individually.
    vb Code:
    1. String = Replace(String, Chr(10), "")
    2. String = Replace(String, Chr(13), "")

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2007
    Posts
    76

    Re: removing of special characters

    like vbnewline is there any keyword for space since found that small box is representing space or ascii value for space

  4. #4
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872

    Re: removing of special characters

    To know the ascii value of a space:
    Code:
    msgbox asc(" ")
    Spaces would not be represented a little box. It must be another character.
    - Use the thread tools to Mark your Thread as Resolved when your question is answered.
    - Please Rate my answers if they where helpful.

  5. #5

    Thread Starter
    Lively Member
    Join Date
    May 2007
    Posts
    76

    Re: removing of special characters

    Yes it was due to space but the non-printable character was due to tab . The problem is now solved by giving

    replace(string1,vbtab,"")

    Thanks

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