Bonjour à tous,
j'ai une macro fonction qui s'appel "MUSIQUE" en terme du turf et dans cette musique il rajoute ce si: "[ ]" et je voudrais les enlever
voici ma macro :
Function MUSIQUE2(R As Range) As String
Dim sX$
With CreateObject("vbscript.regexp"): .Global = True: .Pattern = "[^\d]+": sX = .Replace(R.Text, vbNullString): End With
MUSIQUE2 = sX
End Function
Function MUSIQUE2(R As Range) As String
Dim sX$
With CreateObject("vbscript.regexp"): .Global = True: .Pattern = "[^\d]+": sX = .Replace(R.Text, vbNullString): End With
MUSIQUE2 = sX
End Function