ich habe ein kleines Problem.
Ich benötige einen Code (per Makro-Aufzeichnung stürzt mir Excel immer ab) der mir die ziele 13 von B:AN kopiert (inkl. Formel) und in jeweils der Zeile einsetzt welche in A ein Zahl erhält.
mfg Simon
Option Explicit
Public Sub Kopieren()
Dim loLetzte As Long, raBereich As Range, raZelle As Range
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
With Worksheets("Tabelle1")
loLetzte = .Cells(.Rows.Count, 1).End(xlUp).Row
Set raBereich = .Range(.Cells(14, 1), .Cells(loLetzte, 1))
.Range(.Cells(13, 2), .Cells(13, 11)).Copy
For Each raZelle In raBereich
If IsNumeric(raZelle.Value) Then
raZelle.Offset(0, 1).PasteSpecial Paste:=xlPasteAll
End If
Next raZelle
End With
Set raBereich = Nothing
Application.CutCopyMode = False
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Gruß WernerOption Explicit
Public Sub Kopieren()
Dim loLetzte As Long, raBereich As Range, raZelle As Range
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
With Worksheets("Tabelle1")
loLetzte = .Cells(.Rows.Count, 1).End(xlUp).Row
Set raBereich = .Range(.Cells(14, 1), .Cells(loLetzte, 1))
.Range(.Cells(13, 2), .Cells(13, 40)).Copy
For Each raZelle In raBereich
If IsNumeric(raZelle.Value) Then
raZelle.Offset(0, 1).PasteSpecial Paste:=xlPasteAll
End If
Next raZelle
End With
Set raBereich = Nothing
Application.CutCopyMode = False
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Gruß WernerOption Explicit
Public Sub Kopieren()
Dim loLetzte As Long, raBereich As Range, raZelle As Range
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
With Worksheets("Sub.Verlauf")
loLetzte = .Cells(.Rows.Count, 2).End(xlUp).Row
MsgBox loLetzte
If loLetzte "" Then
If IsNumeric(raZelle.Value) Then
raZelle.Offset(0, 1).PasteSpecial Paste:=xlPasteAll
End If
End If
Next raZelle
End With
Set raBereich = Nothing
Application.CutCopyMode = False
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub
Gruß WernerDie erweiterte Suchfunktion hilft dir, gezielt die besten Antworten zu finden
Suche nach den besten AntwortenEntdecke unsere meistgeklickten Beiträge in der Google Suche
Top 100 Threads jetzt ansehen