Sub Test()
Dim NewPA$, NewVI$, NewBI$
[Table3[REF]].Name = "P" 'plage nommée
NewPA = "PA" & Format([MAX(IF(ISNUMBER(-SUBSTITUTE(P,"PA",)),--SUBSTITUTE(P,"PA",)))] + 1, "00")
NewVI = "VI" & Format([MAX(IF(ISNUMBER(-SUBSTITUTE(P,"VI",)),--SUBSTITUTE(P,"VI",)))] + 1, "00")
NewBI = "BI" & Format([MAX(IF(ISNUMBER(-SUBSTITUTE(P,"BI",)),--SUBSTITUTE(P,"BI",)))] + 1, "00")
MsgBox NewPA & vbLf & NewVI & vbLf & NewBI 'pour tester
End Sub