반응형
Function RemoveSpecial(Str As String) As String
'updatebyExtendoffice 20160303
Dim xChars As String
Dim I As Long
xChars = "#$%()^*&"
For I = 1 To Len(xChars)
Str = Replace$(Str, Mid$(xChars, I, 1), "")
Next
RemoveSpecial = Str
End Function
사용 방법
oAddress = Target.Address
RemoveSpecial (oAddress)
반응형
'업무 자동화 > VBA VB.Net Code' 카테고리의 다른 글
| VAB 딜레이 (0) | 2021.03.30 |
|---|---|
| 엑셀 - 차트 만들기 (0) | 2021.03.20 |
| #1 VBA 폼 기능 알아보기 (0) | 2021.02.19 |
| 변수 정의 (0) | 2021.02.12 |
| Excel VBA Events – An Easy (and Complete) Guide (0) | 2021.01.27 |