Afficher tous les éléments d'une listbox dans une Msgbox
Résolu/Fermé
GTA54
Messages postés
414
Date d'inscription
jeudi 23 février 2012
Statut
Membre
Dernière intervention
7 août 2019
-
4 juin 2013 à 15:39
GTA54 Messages postés 414 Date d'inscription jeudi 23 février 2012 Statut Membre Dernière intervention 7 août 2019 - 5 juin 2013 à 09:02
GTA54 Messages postés 414 Date d'inscription jeudi 23 février 2012 Statut Membre Dernière intervention 7 août 2019 - 5 juin 2013 à 09:02
A voir également:
- Afficher tous les éléments d'une listbox dans une Msgbox
- Photoshop elements gratuit - Télécharger - Retouche d'image
- Afficher appdata - Guide
- Afficher calendrier outlook dans google agenda - Guide
- Afficher les commentaires word - Guide
1 réponse
f894009
Messages postés
17268
Date d'inscription
dimanche 25 novembre 2007
Statut
Membre
Dernière intervention
29 mars 2025
1 713
4 juin 2013 à 16:09
4 juin 2013 à 16:09
Bonjour,
un facon de faire:
Bonne suite
un facon de faire:
Private Sub CommandButton1_Click() Dim tableau As String ListBox1.Clear 'je parcours chq feuille du classeur For Each sh In Worksheets 'si la feuille est visible je met son nom dans ma listbox If sh.Visible = True Then Me.ListBox1.AddItem sh.Name End If Next sh 'Les index des Listbox commencent par zéro For i = 0 To ListBox1.ListCount - 1 tableau = tableau & ListBox1.List(i) & "-" Next i MsgBox "liste: " & tableau End Sub
Bonne suite
5 juin 2013 à 09:02