have eine Frage:
erst mal mein Makro:
Sub termine_combustor_copy()
'EV Combustor'
Sheets("Combustor").Activate
LetzteZeile_WB = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).row
'Initialisierung'
Sheets("Termine").Activate
Range(Cells(4, 1), Cells(LetzteZeile_WB, 159)).Select
Selection.ClearContents
Range(Cells(4, 1), Cells(LetzteZeile_WB, 159)).Select
Selection.Interior.ColorIndex = xlNone
Selection.Font.ColorIndex = 1
'Kopieren der Daten'
Sheets("combustor").Activate
Range(Cells(4, 2), Cells(LetzteZeile_WB, 4)).Select
Selection.copy
Sheets("Termine").Activate
Cells(4, 1).Select
Selection.PasteSpecial Paste:=xlValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
'Deadline'
Range(Cells(4, 117), Cells(LetzteZeile_WB, 117)).Interior.ColorIndex = 33
'Datenübertragung'
'"Required from TGNPO"'
Sheets("Combustor").Activate
For i = 5 To LetzteZeile_WB
If Cells(i, 8) Empty Then
Name = Cells(i, 3).Value
'Lokalisierung der Component-Namen und Daten'
row = Cells(i, 3).row
Comp = Cells(row, 3).Value
deldate = Cells(row, 8).Value
'Suche und Lokalisierung des Datenpaars Comp/exdate'
Sheets("Termine").Activate
'Name
Cells.Find(What:=Name, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _
.Activate
y = ActiveCell.row
'Required from TGNPO'
Cells.Find(What:=deldate, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _
.Activate
x_tgnpo = ActiveCell.Column
Cells(y, x_tgnpo).Interior.ColorIndex = 27
End If
Next
'"Design confirmend"'
Sheets("Combustor").Activate
For i = 5 To LetzteZeile_WB
If Cells(i, 9) Empty Then
Name = Cells(i, 3).Value
'Lokalisierung der Component-Namen und Daten
row = Cells(i, 3).row
Comp = Cells(row, 3).Value
pldate = Cells(row, 9).Value
'Suche und Lokalisierung des Datenpaars Comp/exdate
Sheets("Termine").Activate
'Name
Cells.Find(What:=Name, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _
.Activate
y = ActiveCell.row
'Expected Date
Cells.Find(What:=pldate, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _
.Activate
x_pl = ActiveCell.Column
Cells(y, x_pl).Interior.ColorIndex = 32
End If
Next
'übertragen aller "Final approved"'
Sheets("Combustor").Activate
For i = 5 To LetzteZeile_WB
If Cells(i, 10) Empty Then
Name = Cells(i, 3).Value
'Lokalisierung der Component-Namen und Daten
row = Cells(i, 3).row
Comp = Cells(row, 3).Value
deldate = Cells(row, 10).Value
Next
'Suche und Lokalisierung des Datenpaars Comp/exdate
Sheets("Termine").Activate
'Name
Cells.Find(What:=Name, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _
.Activate
y = ActiveCell.row
'Expected Date
Cells.Find(What:=deldate, After:=ActiveCell, LookIn:=xlValues, LookAt:= _
xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:=False) _
.Activate
x_del = ActiveCell.Column
For j = 2 To 159
Cells(y, j).Interior.ColorIndex = 48
Cells(y, 2).Font.ColorIndex = 2
Cells(y, 3).Font.ColorIndex = 2
Next
End If
Sheets("Termine").Activate
End Sub
Der erste Teil funzt (scharz)... hat zwar ein bisschen gedauert bis ichs geschafft habe aber jetzt klappts. Beim blauen teil haperts. Ihn habe ich bereits in einem alten sheet benutzt... Irgendwie funzt er jetzt jedoch nicht mehr. Die Aufgabe wäre Daten aus der Liste im tabellenblatt(sheet:combustor) auf ein Kalenderblatt(sheet: termine) zu übertragen (oberste Zeile: Kalenderwochen, linke Spalte Teilenamen und dann sollte wenn ein Teil z.B 2008wk10 geliefert wird, diese Zelle blau markiert werden... war das verständlich?)
hat jemand eine sinnvolle Idee wie ich die Zellenwerte aus Tabellenblatt nehmen, in Kalenderblatt suchen und dann gewünschte Zelle formatieren kann?
Vielen Dank!
Gruss Nicolas