Hello, I am looking for help, I am really new to vba. My problem is that, lets say I have 4 tables in the active sheet, I want to making coding so that, if I add any number of rows to the 1st table, I want the same number of rows to be added at the below 3 tables automatically. For example, I add 2 rows to the 1st table, so the 2nd, 3rd and 4th tables also must automatically generate 2 rows. So far I create coding to add number of rows for the 1st table only, I hope someone can help me solve this, thank...
Sub InsertNumRows()
ActiveCell.EntireRow.Copy
Dim Rng As Long
Application.DisplayAlerts = False
On Error Resume Next
Rng = InputBox("Enter number of rows required.")
On Error GoTo 0
Application.DisplayAlerts = True
If Rng = 0 Then
MsgBox "You didn't specify a range!"
Exit Sub
Else
Range(ActiveCell.Offset(1, 0), ActiveCell.Offset(Rng, 0)).Select
Selection.EntireRow.Insert Shift:=xlDown
End If
End Sub
Sub InsertNumRows()
ActiveCell.EntireRow.Copy
Dim Rng As Long
Application.DisplayAlerts = False
On Error Resume Next
Rng = InputBox("Enter number of rows required.")
On Error GoTo 0
Application.DisplayAlerts = True
If Rng = 0 Then
MsgBox "You didn't specify a range!"
Exit Sub
Else
Range(ActiveCell.Offset(1, 0), ActiveCell.Offset(Rng, 0)).Select
Selection.EntireRow.Insert Shift:=xlDown
End If
End Sub