Excel VBA Remove No Alphabet and Number

Sub RemoveNotAlphasNotNum() Dim Rng   As Range Dim WorkRng   As Range On Error Resume Next xTitleId =   "KutoolsforExc...

Sub RemoveNotAlphasNotNum()
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
For Each Rng In WorkRng
    xOut = ""
    For i = 1 To Len(Rng.Value)
        xTemp = Mid(Rng.Value, i, 1)
        If xTemp Like "[a-z.]" Or xTemp Like "[A-Z.]" Or xTemp Like "[0-9.]" Then
            xStr = xTemp
        Else
            xStr = " "
        End If
        xOut = xOut & xStr
    Next i
    Rng.Value = xOut
Next
End Sub"

Actualy, I want only alphabet so I remove these command "Or xTemp Like "[0-9.]. All unwanted character will be replaced with "white space"

COMMENTS

get more nice stuff
in your inbox

instantly by Subscribing to us. So you will get email everytime we post something new here

Name

กลอน,4,การ์ตูน,1,กีฬา,2,ข่าว,7,เขี่ยต่อม,32,คลิป,26,ความรู้ทั่วไป,3,ความสุข,1,คอนเสิร์ต,1,โควิท,3,โฆษณา,2,จักรวาล,1,จิต,4,โจ๊ก,2,ช๊อปปิ้ง,4,ซุปเปอร์มาเก็ต,1,ดนตรี,1,เด็ก,1,ไดอารี,30,ตลาดนัด,1,เตือน,4,ท่องเที่ยว,1,ทีวี,3,เทคโนโลยี่,3,ธุรกิจ,2,บล็อก,3,บันเทิง,47,เพลง,8,รถยนต์,1,ล็อตเตอรี่,1,ลึกลับ,1,เลขท้าย,1,วันสำคัญ,2,วิถึกรรม,8,วิทยาศาสตร์,3,เว็บ,3,สงบ,5,สมาธิ,5,สลากกินแบ่งรัฐบาล,1,สิ่งแวดล้อม,2,สินค้า,1,สุขภาพ,3,หนัง,2,หน้ากาก,1,หวย,1,หวยใต้ดิน,1,เหมี๋ยว ๆ,3,อาหาร,2,อินเตอร์เน็ต,2,อื่นๆ,5,ไอที,2,โฮ่ง ๆ,1,
ltr
item
OR Gate [1 + ? = 1]: Excel VBA Remove No Alphabet and Number
Excel VBA Remove No Alphabet and Number
OR Gate [1 + ? = 1]
http://orgate.blogspot.com/2016/06/excel-remove-no-alphabet-and-number.html
http://orgate.blogspot.com/
http://orgate.blogspot.com/
http://orgate.blogspot.com/2016/06/excel-remove-no-alphabet-and-number.html
true
8641896283050182564
UTF-8
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content