Macro/excel weekdays(.value) insertion cellul
Résolu/Fermé
informatifien
Messages postés
741
Date d'inscription
lundi 18 mai 2009
Statut
Membre
Dernière intervention
10 janvier 2016
-
21 oct. 2009 à 09:51
anime18 - 27 mai 2010 à 13:27
anime18 - 27 mai 2010 à 13:27
A voir également:
- Macro/excel weekdays(.value) insertion cellul
- Telecharger macro convertir chiffre en lettre excel - Télécharger - Tableur
- Liste déroulante excel - Guide
- Formule excel pour additionner plusieurs cellules - Guide
- Excel cellule couleur si condition texte - Guide
- Aller à la ligne dans une cellule excel - Guide
4 réponses
informatifien
Messages postés
741
Date d'inscription
lundi 18 mai 2009
Statut
Membre
Dernière intervention
10 janvier 2016
92
21 oct. 2009 à 11:16
21 oct. 2009 à 11:16
please heeeeEEEElp me :( :(
informatifien
Messages postés
741
Date d'inscription
lundi 18 mai 2009
Statut
Membre
Dernière intervention
10 janvier 2016
92
21 oct. 2009 à 14:14
21 oct. 2009 à 14:14
bon ben zut alors je suis pourtant poli j'ecris en faisant un minimum de faute en tout cas j'essaye mais ce n'est pas très efficace :( . . . .
Personne ne sait alors?
Personne ne sait alors?
informatifien
Messages postés
741
Date d'inscription
lundi 18 mai 2009
Statut
Membre
Dernière intervention
10 janvier 2016
92
21 oct. 2009 à 14:57
21 oct. 2009 à 14:57
voilà la solution surement pas académique pour certain mais elle marche:
Do ' je cherche la ligne créer avec les dates mais par son numero d'OF
e = e + 1
Loop Until Application.Cells(e, 1) = b
e = e - 1
Do ' je cherche la derniere cellule vide
f = f + 1
Loop Until Application.Cells(e, f) = Empty
For y = 5 To f ' je sais pas trop ce que je fais
If Weekday(Cells(e, y).Value) = 1 Then ' si samedi alors
Application.Cells(e + 1, y - 1).Select
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Application.Cells(e + 2, y - 1).Select
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Else
End If
Next y
Merci
Do ' je cherche la ligne créer avec les dates mais par son numero d'OF
e = e + 1
Loop Until Application.Cells(e, 1) = b
e = e - 1
Do ' je cherche la derniere cellule vide
f = f + 1
Loop Until Application.Cells(e, f) = Empty
For y = 5 To f ' je sais pas trop ce que je fais
If Weekday(Cells(e, y).Value) = 1 Then ' si samedi alors
Application.Cells(e + 1, y - 1).Select
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Application.Cells(e + 2, y - 1).Select
Selection.Insert Shift:=xlToRight
Selection.Insert Shift:=xlToRight
Else
End If
Next y
Merci