Replacing any alphabet with C, and number with 0 in an alphanume
Closed
Raj
-
26 Apr 2015 à 23:01
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 30 Apr 2015 à 11:37
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 30 Apr 2015 à 11:37
Related:
- Xbox-2309-1001-3-0
- Psiphon 3 - Download - VPN
- Xbox App - Download - Digital stores
- Xbox backup creator - Download - Backup and recovery
- Hitman 3 cheats - Guide
- Gacha nebula 1.1 .0 apk download - Download - Casual
1 response
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
30 Apr 2015 à 11:37
30 Apr 2015 à 11:37
Hi Raj,
Thanks for the nice request.
Here is the code I got for you:
Best regards,
Trowa
Thanks for the nice request.
Here is the code I got for you:
Sub RunMe()
Dim x, lRow As Integer
Dim MyValue As String
lRow = Range("A" & Rows.Count).End(xlUp).Row
For Each cell In Range("A2:A" & lRow)
MyValue = cell.Value
For x = 1 To Len(MyValue)
If IsNumeric(Mid(MyValue, x, 1)) = True Then
Mid(MyValue, x, 1) = 0
Else
Mid(MyValue, x, 1) = "C"
End If
Next x
cell.Value = MyValue
Next cell
End Sub
Best regards,
Trowa