i am verry new here i have a macro that coppy a row (45) and insert it a couple of times below that row(45)
i have assigned this macro to a button now i'm looking for a way that if i click that button the macro apply's this command to all sheets
here is the macro i am using now
Sub finaleRijenToevoegenVoorschotFactuur()
Dim xCount As Integer
LableNumber:
xCount = Application.InputBox("Aantal rijen", "VERKOPEN DIE HANDEL", , , , , , 1)
If xCount < 1 Then
MsgBox "the entered number of rows is error, please enter again", vbInformation, "testing"
GoTo LableNumber
End If
Range("A42").Select
ActiveCell.EntireRow.Copy
Range(ActiveCell.Offset(1, 0), ActiveCell.Offset(xCount, 0)).EntireRow.Insert Shift:=xlDown
Application.CutCopyMode = False
End Sub