Visual Basic Sélection cellule excel
Rudy
-
Rudy -
Rudy -
Bonjour,
Voila mon problème je demande à l’utilisateur de définir des cellules par ligne et par colonne. Le problème c’est que je ne sais pas comment écrire CellCP pour qu’il soit reconnu comme la combinaison d’une colonne et d’une cellule.
Merci.
Private Sub Traitement_Click()
Dim a As Variant
Dim b As Variant
Dim c As Variant
Dim d As Variant
Dim CellCP As Variant
Dim CellSP As Variant
Dim NomFeuil As Variant
a = ColonneCP.Text
b = LigneCP.Text
c = ColonneSP.Text
d = LigneSP.Text
CellCP = "ab"
CellSP = "cd"
NomFeuil = SaisieNomFeuil.Text
Sheets(NomFeuil).Select
Range(CellCP).Select
Voila mon problème je demande à l’utilisateur de définir des cellules par ligne et par colonne. Le problème c’est que je ne sais pas comment écrire CellCP pour qu’il soit reconnu comme la combinaison d’une colonne et d’une cellule.
Merci.
Private Sub Traitement_Click()
Dim a As Variant
Dim b As Variant
Dim c As Variant
Dim d As Variant
Dim CellCP As Variant
Dim CellSP As Variant
Dim NomFeuil As Variant
a = ColonneCP.Text
b = LigneCP.Text
c = ColonneSP.Text
d = LigneSP.Text
CellCP = "ab"
CellSP = "cd"
NomFeuil = SaisieNomFeuil.Text
Sheets(NomFeuil).Select
Range(CellCP).Select
A voir également:
- Visual Basic Sélection cellule excel
- Visual basic - Télécharger - Langages
- Excel cellule couleur si condition texte - Guide
- Liste déroulante excel - Guide
- Proteger cellule excel - Guide
- Word et excel gratuit - Guide