Une liste qui s'use quand on s'en sert
on assure la compatibilité excel 97 feuille modal
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" _ (ByVal lpClassName As String, ByVal lpWindowName As String) As Long Private Declare Function EnableWindow Lib "user32" _ (ByVal hWnd As Long, ByVal fEnable As Long) As Long
Private sub UserForm_Initialize()
For Each c In Range("nom").Cells
ListBox1.AddItem (c.Value)
TextBox1.Value = ListBox1.ListCount
Next
end subPrivate sub ListBox1_DblClick(ByVal Cancel As MSForms.ReturnBoolean) ActiveCell.Value = ListBox1.Value ListBox1.RemoveItem (Index) TextBox1.Value = ListBox1.ListCount end sub
Auteur : Philippe Bronchart
Mots clefs associés à cette page : liste, supprimer
- Vous devez vous identifier ou créer un compte pour écrire des commentaires
