Function PrimeroImpares(cadena As String)
Dim pares, impares, c As Integer
For c = 1 To Len(cadena)
If (c Mod 2) = 0 Then
pares = pares & Mid(cadena, c, 1)
Else
impares = impares & Mid(cadena, c, 1)
End If
Next c
PrimeroImpares = impares & pares
End Function