AŞAĞIDAKİ MAKROYU 5000 İNCİ SATIRA KADAR YAPMAK İSTİYORUM
6 NO.LU SATIRDAN BAŞLAYIP 5000 İNCİ SATIRA KADAR AYNI İŞLEMİ YAPICAK. AMAÇ SOL TARAFTAKİ BENİM FATURA NUMARAMDAN ARAMA YAPIP DİĞER SUTUNDA BU FATURA NOSUNU BULUP RENKLENDİRMESİ, YOK İSE ARATTIĞIMI FARKLI BİR RENK YAPMASI. DAHA BASİT BİR YOLU VARSA YARDIM RİCA EDİYORUM..
Sub Makro8()
'
' Makro8 Makro
' Makro ece tarafından 15.10.2011 tarihinde kaydedildi.
'
'
Cells.Find(What:="TARİH", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range("B6").Select
ActiveCell.FormulaR1C1 = "999"
Cells.Find(What:="999", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Selection.Interior.ColorIndex = 3
Range("F6").Select
Selection.Interior.ColorIndex = 3
Range("H6").Select
Selection.Interior.ColorIndex = 3
Range("I6").Select
Selection.Interior.ColorIndex = 3
Cells.FindNext(After:=ActiveCell).Activate
Selection.Interior.ColorIndex = 3
Range("C6").Select
Selection.Interior.ColorIndex = 3
Range("D6").Select
Selection.Interior.ColorIndex = 3
Range("A6").Select
Selection.Interior.ColorIndex = 3
Cells.Find(What:="TARİH", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range("B7").Select
ActiveCell.FormulaR1C1 = "888"
Cells.Find(What:="888", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Selection.Interior.ColorIndex = 3
Range("F7").Select
Selection.Interior.ColorIndex = 3
Range("H7").Select
Selection.Interior.ColorIndex = 3
Range("I7").Select
Selection.Interior.ColorIndex = 3
Cells.FindNext(After:=ActiveCell).Activate
Selection.Interior.ColorIndex = 3
Range("A7").Select
Selection.Interior.ColorIndex = 3
Range("C7").Select
Selection.Interior.ColorIndex = 3
Range("D7").Select
Selection.Interior.ColorIndex = 3
Cells.Find(What:="TARİH", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range("B8").Select
ActiveCell.FormulaR1C1 = "777"
Cells.Find(What:="777", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Cells.FindNext(After:=ActiveCell).Activate
Range("B8").Select
Selection.Interior.ColorIndex = 1
Range("B8").Select
Selection.Font.ColorIndex = 3
Range("A8").Select
End Sub
6 NO.LU SATIRDAN BAŞLAYIP 5000 İNCİ SATIRA KADAR AYNI İŞLEMİ YAPICAK. AMAÇ SOL TARAFTAKİ BENİM FATURA NUMARAMDAN ARAMA YAPIP DİĞER SUTUNDA BU FATURA NOSUNU BULUP RENKLENDİRMESİ, YOK İSE ARATTIĞIMI FARKLI BİR RENK YAPMASI. DAHA BASİT BİR YOLU VARSA YARDIM RİCA EDİYORUM..
Sub Makro8()
'
' Makro8 Makro
' Makro ece tarafından 15.10.2011 tarihinde kaydedildi.
'
'
Cells.Find(What:="TARİH", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range("B6").Select
ActiveCell.FormulaR1C1 = "999"
Cells.Find(What:="999", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Selection.Interior.ColorIndex = 3
Range("F6").Select
Selection.Interior.ColorIndex = 3
Range("H6").Select
Selection.Interior.ColorIndex = 3
Range("I6").Select
Selection.Interior.ColorIndex = 3
Cells.FindNext(After:=ActiveCell).Activate
Selection.Interior.ColorIndex = 3
Range("C6").Select
Selection.Interior.ColorIndex = 3
Range("D6").Select
Selection.Interior.ColorIndex = 3
Range("A6").Select
Selection.Interior.ColorIndex = 3
Cells.Find(What:="TARİH", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range("B7").Select
ActiveCell.FormulaR1C1 = "888"
Cells.Find(What:="888", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Selection.Interior.ColorIndex = 3
Range("F7").Select
Selection.Interior.ColorIndex = 3
Range("H7").Select
Selection.Interior.ColorIndex = 3
Range("I7").Select
Selection.Interior.ColorIndex = 3
Cells.FindNext(After:=ActiveCell).Activate
Selection.Interior.ColorIndex = 3
Range("A7").Select
Selection.Interior.ColorIndex = 3
Range("C7").Select
Selection.Interior.ColorIndex = 3
Range("D7").Select
Selection.Interior.ColorIndex = 3
Cells.Find(What:="TARİH", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False, SearchFormat:=False).Activate
Range("B8").Select
ActiveCell.FormulaR1C1 = "777"
Cells.Find(What:="777", After:=ActiveCell, LookIn:=xlFormulas, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False _
, SearchFormat:=False).Activate
Cells.FindNext(After:=ActiveCell).Activate
Range("B8").Select
Selection.Interior.ColorIndex = 1
Range("B8").Select
Selection.Font.ColorIndex = 3
Range("A8").Select
End Sub
