Beruflich Dokumente
Kultur Dokumente
Sub InsertTwoBlankRows()
'Step 2: Define the target Range, using the named range, "YearlySales"
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
Next iCounter
End Sub
Delete rows
Sub DeleteBlankRows()
'Step1: Declare variables.
If Application.CountA(Rows(iCounter).EntireRow) = 0 Then
Rows(iCounter).Delete
End If
Next iCounter
End Sub
End If
Option Explicit
Sub InsertNBlankRows()
ErrorHandler:
'Step 2: Define the target Range, using the named range, "YearlySales"
If BRowCount = 1 Then
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
Else
End If
Next iCounter
End Sub
Sub ApplyColorBanding()
Else
MyRow.Interior.ColorIndex = 2
End If
Next MyRow
End Sub
If BRowCount = 1 Then
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
MyRange.Rows(iCounter).EntireRow.Insert
End If