Salut Pierre, LouReed,
j'ai un peu chipoté mais bon, on y est...
Un simple double-clic (réversible) transforme la cellule et son contenu en valeur texte.
Seule condition pour éviter les problèmes (histoire de faciliter le travail du programmeur - hum...), que tout ce qui est extérieur au tableau proprement dit soit affiché en GRAS contrairement au tableau lui-même.
Le code se trouve dans le module de 'THISWORKBOOK'.
Private Sub Workbook_SheetBeforeDoubleClick(ByVal Sh As Object, ByVal Target As Range, Cancel As Boolean)
'
If Target.Font.Bold = True Then Exit Sub
Application.EnableEvents = False
'
Cancel = True
Target.Interior.Color = IIf(Target.Interior.Color = RGB(70, 150, 100), Cells(Target.Row, 1).Interior.Color, RGB(70, 150, 100))
Target.NumberFormat = IIf(Target.Interior.Color = RGB(70, 150, 100), "@", "#,##0.00")
Target = IIf(Target.Interior.Color = RGB(70, 150, 100), CStr(Target), CDbl(Target))
'
Application.EnableEvents = True
'
End Sub
Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
'
If Target.Font.Bold = True Then Exit Sub
Application.EnableEvents = False
'
If Target.Interior.Color = RGB(70, 150, 100) Then Target.NumberFormat = "#,##0.00"
If Target.Interior.Color = RGB(70, 150, 100) Then Target = CDbl(Target)
If Target.Interior.Color = RGB(70, 150, 100) Then Target.Interior.Color = Cells(Target.Row, 1).Interior.Color
'
Application.EnableEvents = True
'
End Sub
A+