Results 1 to 16 of 16

Remove Extra Zeros from Text

Threaded View

  1. #1
    Registered User
    Join Date
    05-12-2007
    Posts
    19

    Remove Extra Zeros from Text

    Dear All,

    i want to know how can i remove 0000s from a text

    EG :

    Text || Desired Result
    --------- ----------------------

    HMC007 || HMC7
    MC00070 || MC70


    Function GETALPHANUMERIC(text)
    
    str_all = "abcdefghijklmnopqrstuvwxyz1234567890"
    For lenstr = 1 To Len(text)
        If InStr(str_all, LCase(Mid(text, lenstr, 1))) Then
            GETALPHANUMERIC = GETALPHANUMERIC & Mid(text, lenstr, 1)
        End If
    Next
    
    End Function

    I am Using Excel 2007 - VBA Code

    Thanks
    Last edited by skaswani; 11-22-2010 at 04:50 PM.

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