Forum Discussion

  • NikolinoDE's avatar
    NikolinoDE
    Gold Contributor

    ajmal_pottekattil_yoousuf 

    You probably mean convert and not remove, otherwise the Del key would be too simple πŸ™‚ …if so here's a workaround.

    You can convert characters created with the keyboard like β€œ#$#$%$%” to numbers by following a simple pattern; a = 1, b = 2, c = 3, etc

    Here’s a VBA code that you can use to convert characters created with the keyboard like β€œ#$#$%$%” to numbers with step by step instructions:

    Sub ConvertCharactersToNumbers()
        Dim str As String
        Dim i As Integer
        Dim result As String
        
        str = "#$#$%$%"
        
        For i = 1 To Len(str)
            result = result & Asc(Mid(str, i, 1)) - 64
        Next i
        
        MsgBox result
    End Sub

    This code will convert β€œ#$#$%$%” to β€œ19201920”.

     

    I hope that helps!

     

    NikolinoDE

    I know I don't know anything (Socrates)

Resources