+ Reply to Thread
Results 1 to 11 of 11

remove whitespace or tabs

Hybrid View

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

    Re: remove whitespace or tabs

    Then try
    'Your code
    For x = LBound(myArray) To UBound(myArray)
        myArray(x) = CleanAll("a" & myArray(x))
    Next
    ' Your code
    Add this function somewhere outside above procedure.
    Function CleanAll(ByVal txt As String) As String
        With CreateObject("VBScript.RegExp")
            .Global = True
            .Pattern = "[\n\t\v\f\s]+"
            CleanAll = .Replace(txt, "")
        End With
    End Function

  2. #2
    Registered User
    Join Date
    09-28-2012
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: remove whitespace or tabs

    I'll give it a try now and reply back

  3. #3
    Registered User
    Join Date
    09-28-2012
    Location
    boston
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: remove whitespace or tabs

    still not working

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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