Ok, put this in a standard module:
Sub AddRow()
With ActiveSheet
.Cells(.Cells(Rows.Count, "b").End(xlUp).Row + 1, 2).Resize(, 8).Value = Array(InputBox("please enter venue name"), _
InputBox("please enter Closest Railhead"), _
InputBox("please enter Alternate railhead"), _
"", _
"", _
InputBox("Please enter venue Postcode"), _
InputBox("Please enter Latitude"), _
InputBox("Please enter Longitude"))
End With
End Sub
Copy the Excel VBA code
Select the workbook in which you want to store the Excel VBA code
Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
Choose Insert | Module
Where the cursor is flashing, choose Edit | Paste
To run the Excel VBA code:
Choose Tools | Macro | Macros
Select a macro in the list, and click the Run button
Bookmarks