Bonjour,
Je cherche.à faire une simple macro du genre si une cellule a une certaine valeur, alors il faut choisir tel ou tel affichage. La macro ci-dessous ne fonctionne pas du tout. Elle est pourtant très simple. Help
Philippe
Sub ACCESVERSBASE()
If Range("I3").Value = "LIGHT" Then
Sheets("BASE DE DONNEES").Select
ActiveWorkbook.CustomViews("LIGHT").Show
End If
If Range("I3").Value = "FULL" Then
Sheets("BASE DE DONNEES").Select
ActiveWorkbook.CustomViews("FULL").Show
End If
If Range("I3").Value = "EXPERT" Then
Sheets("BASE DE DONNEES").Select
ActiveWorkbook.CustomViews("EXPERT").Show
End If
End Sub