I currently have
Sub FYInsertRows()
Dim Rows As Variant
Rows = InputBox("How many rows?")
If Rows = "" Then Exit Sub
ActiveCell.EntireRow.Resize(Rows).Insert
End Sub
which works but the issue I run into with others in my department is that we open new templates and workbooks so often that it gets hard to keep adding in this code every single new template/workbook we work out of.
Is there a way to have some sort of batch file or some way in excel that I could easily transfer the VBA code over into other workbooks without creating chaos by re-adding the code to every workbook?
Sub FYInsertRows()
Dim Rows As Variant
Rows = InputBox("How many rows?")
If Rows = "" Then Exit Sub
ActiveCell.EntireRow.Resize(Rows).Insert
End Sub
which works but the issue I run into with others in my department is that we open new templates and workbooks so often that it gets hard to keep adding in this code every single new template/workbook we work out of.
Is there a way to have some sort of batch file or some way in excel that I could easily transfer the VBA code over into other workbooks without creating chaos by re-adding the code to every workbook?