Microsoft 365 condition qui ne fonctionne plus avec Range("q7", Range("q1048576").End(xlUp)))

Boostez vos compétences Excel avec notre communauté !

Rejoignez Excel Downloads, le rendez-vous des passionnés où l'entraide fait la force. Apprenez, échangez, progressez – et tout ça gratuitement ! 👉 Inscrivez-vous maintenant !

Usine à gaz

XLDnaute Barbatruc
Supporter XLD
Bonjour à toutes et à tous,

Tjrs dans mon fichier que je tente d'améliorer, j'ai modifié une condition :
If Not Application.Intersect(Target, Range("q7:q100000")) Is Nothing Then
comme ceci :
If Not Application.Intersect(Target, Range("q7", Range("q1048576").End(xlUp))) Is Nothing Then
et ça ne fonctionne plus

Auriez-vous la bonne correction ?
Un grand merci encore une fois 🙂
Amicalement,
lionel,
 
re
Bonjour arthour973
purré c'est dur a rentrer hein!!! 😉

LE ".PARENT" !!!!!!

VB:
with sheets("toto")
If Not Application.Intersect(Target, .Range("q7", .Range("q1048576").End(xlUp))) Is Nothing Then
'...
'...
end with

ou encore
VB:
with target.parent
If Not Application.Intersect(Target, .Range("q7", .Range("q1048576").End(xlUp))) Is Nothing Then
'...
'...
end with

et de surcroit je remplacerais .Range("q1048576") par .Range("q" & rows.count) histoire d’être compatible excel inf a 2007
😉
 
- Navigue sans publicité
- Accède à Cléa, notre assistante IA experte Excel... et pas que...
- Profite de fonctionnalités exclusives
Ton soutien permet à Excel Downloads de rester 100% gratuit et de continuer à rassembler les passionnés d'Excel.
Je deviens Supporter XLD

Discussions similaires

Réponses
16
Affichages
1 K
Réponses
4
Affichages
590
Retour