Results 1 to 2 of 2

Thread: String manipulation Question

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2000
    Posts
    71
    I have a string that has a large ammount of spaces between the words as well as carrage returns. I need to get rid of those non essential spaces, as well as the carrage returns so that I have one big long string. Any ideas?

  2. #2
    Guest
    You may want to use the Replace function.

    Code:
    Dim mystring As String
    mystring = "Hello" & vbCr & "Hi" & vbCr & "Bye"
    MsgBox mystring
    MsgBox Replace(mystring, vbCr, "")
    'replaces all carriage returns with nothing
    Get the idea? Need more? Ask.

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