A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Hi,
Put a button on any of the workshets where you want this then attach this code. At the bottom of the code the underlined bit is the name of the worksheets that you want the data added to. Edit as required
Private Sub CommandButton1_Click()
Dim Response As String, NewName As String
Dim ws As Worksheet
Response = MsgBox("Have you selected the row below where you want to insert data?", vbYesNo)
If Response = vbNo Then Exit Sub
NewName = InputBox("Enter new name in the format 'Secondname, Forename")
If NewName = vbNullString Then
MsgBox "Sorry I didn't get that name, re-try from start"
Exit Sub
End If
r = ActiveCell.Row
'note these must be the names of the sheets as they appear
'on the worksheet tab
For Each ws In Sheets(Array**("Worksheet A", "Worksheet B", "Worksheet C"))**With ws
.Rows(r).EntireRow.Insert
.Cells(r, 1) = NewName
.Cells(r - 1, 2).Resize(2, 256).FillDown
End With
Next
End Sub