Besoin d'aide avec une formules, trouver une couleur spécifique et la couper et coller dans une autres feuilles

michellin

Board Regular
Joined
Oct 4, 2011
Messages
56
Office Version
  1. 2019
Platform
  1. Windows
Bonjour a vous tous,

J'ai un fichier sur la feuille1, ma 1er ranger ce sont mes titres, mes donné sont situer de a 2 a m1001. Dans la collonne A je mets en jaune #6 les choses faites. J'aimerais automatiser le tout.
Avoir une macro qui regarderais dans la collone A, quand il trouve une cellule jaune il coupe la ligne et la colle dans la feuille 2 a la suite des autres en partant de la ligne 2, car la ligne 1 est mes titres encore. Bien sur sans jamais effacer de ligne dans la feuille 2. Il faudrait aussi qu'il cherche tout les cellules jaunes et non juste une a la fois. En bonus je ne sais pas si cela est possible mais une fois la ligne coller dans la feuille 2 dans la collonne N mettre la date du jour sans heure. ave

J'ai trouver cette macro sur le net qui fais un peu mes besoins, mais ne fais qu'une ligne a la fois. J'ai bien tenté de la modifier, mais je suis un peu noob en vb, mais j'apprend beaucoup.

Sub tri_couleur()

With Selection.Font
.Color = 6
.TintAndShade = 0
End With

Selection.EntireRow.Copy Sheets("FEUIL2").Cells(Rows.Count, 1).End(xlUp).Offset(1)
Selection.EntireRow.Delete xlShiftUp

End Sub


Merci de m'aider :)
Michellin
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top