IIf(IsEmpty(Cells(Rows.Count, 1)), Cells(Rows.Count, 1).End(xlUp).Row, Rows.Count)
Range("A1:J55").Select
Selection.Copy Range("A1:J55").CopyRange("K1248").Select
ActiveCell.FormulaR1C1 = "Ende"Range("K1248") = "Ende"Sub Schaltfläche2_BeiKlick()
Dim wbMappe As Workbook
Dim wsTabelle As Worksheet
Dim loLetzte As Long
Set wsTabelle = ThisWorkbook.Worksheets("GPO 2007")
loLetzte = IIf(IsEmpty(wsTabelle.Cells(Rows.Count, 1)), wsTabelle.Cells(wsTabelle.Rows.Count, 1).End(xlUp).Row, wsTabelle.Rows.Count)
For Each wbMappe In Excel.Workbooks
[b]If wbMappe.Name <> ThisWorkbook.Name And wbMappe.Name <> "PERSONL.XLS" [/b]Then
With wbMappe.Worksheets("Tabelle1") '<== hier den Namen der Tabelle anpassen, aus der kopiert wird
.Range("A1:J55").Copy wsTabelle.Cells(loLetzte + 1, 1)
loLetzte = IIf(IsEmpty(wsTabelle.Cells(Rows.Count, 1)), wsTabelle.Cells(wsTabelle.Rows.Count, 1).End(xlUp).Row, wsTabelle.Rows.Count)
wsTabelle.Cells(loLetzte, 11) = "Ende"
End With
End If
Next wbMappe
End Sub
Makros - zweiten Drucker als Symbol in die Symbolleiste einfügen
Mikoop 24.11.2006 - 4092 Hits - 1 Antwort
kann wegen makro nicht drucken - was machen?
srepsac 26.06.2007 - 118 Hits - 1 Antwort
Makro geht nicht, bei Password
tuete25 02.09.2007 - 31 Hits - 17 Antworten
Brauche Tipps für einen individuellen VBA-Code
varginator 03.04.2008 - 118 Hits - 14 Antworten