Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

selection dans une plage

1 réponse
Avatar
bruno.lindis
bonjour,

Suite à une sélection dans un format je récupère une plage de dimension
(NbLigPlageChoix,3) dite "PlageChoix". Le code suivant est supposé me
donner une sous-plage "PlageData" correspondant à
PlageChoix(B2:C_NbLigPlageChoix)

Range(PlageChoix).Select
Set PlageData = Selection.Range(Cells(2, 2), Cells(NbLigPlageChoix, 3))

Ben ça marche pas :-(

Comment faire ?

Merci.
--
-- Otez le second point pour me contacter

1 réponse

Avatar
jean-paul.giorgetti
On 14 mai, 19:00, "bruno.lindis" wrote:
bonjour,

Suite à une sélection dans un format je récupère une plage de dime nsion
(NbLigPlageChoix,3) dite "PlageChoix". Le code suivant est supposé me
donner une sous-plage "PlageData" correspondant à
PlageChoix(B2:C_NbLigPlageChoix)

Range(PlageChoix).Select
Set PlageData = Selection.Range(Cells(2, 2), Cells(NbLigPlageChoix, 3))

Ben ça marche pas :-(

Comment faire ?

Merci.
--
-- Otez le second point pour me contacter


Salut

Essaye ceci !

Sub essai()

Range("Choix").Select
nblgPlgChx = 4
Set PlageData = Selection.Cells(4, 2).Resize(nblgPlgChx, 3)
PlageData.Select
End Sub