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 Contributor Last seen December 27, 2022 - Apr 30, 2015 at 11:37 AM
        TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Contributor Last seen December 27, 2022 - Apr 30, 2015 at 11:37 AM
        Related:         
- Xbox-2309-1001-3-0
 - Xbox App - Download - Digital stores
 - Psiphon 3 - Download - VPN
 - Hitman 3 cheats - Guide
 - Xbox backup creator - Download - Backup and recovery
 - Xbox 360 controller driver - Download - Drivers
 
1 response
                
        
                    TrowaD
    
        
                    Posts
            
                
            2921
                
                            Registration date
            Sunday September 12, 2010
                            Status
            Contributor
                            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