Replacing any alphabet with C, and number with 0 in an alphanume
Closed
Raj
-
Apr 26, 2015 at 11:01 PM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Apr 30, 2015 at 11:37 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Apr 30, 2015 at 11:37 AM
Related:
- Replacing any alphabet with C, and number with 0 in an alphanume
- //192.168.l.0 - Guide
- Xbox-2309-1001-3-0 - Download - Digital stores
- Whatsapp-desktop-2-2401-5-0.msixbundle - Download - Instant messaging
- How to alphabetize bookmarks in chrome - Guide
- Replacing batteries in firestick remote - Guide
1 response
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Apr 30, 2015 at 11:37 AM
Apr 30, 2015 at 11:37 AM
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