Now, I've never been accused of being the smartest guy in the room, so I apologize if this is a simple and easy solution, but here goes.
Currently, we have a template that allows users to operate within a batch of specified sheets, with a pre-generated number of line items that they can add or detract from. Because of how specialized the information is, the new line items have to be pulled from a separate sheet and inserted as a new row. The problem is, at the very bottom of each sheet is a Total row, which is 25.50 units tall. When my users insert a new line or batch, the row height stays absolute to that row, rather than being relative. How can I fix this? New line and new batch codes below.
Currently, we have a template that allows users to operate within a batch of specified sheets, with a pre-generated number of line items that they can add or detract from. Because of how specialized the information is, the new line items have to be pulled from a separate sheet and inserted as a new row. The problem is, at the very bottom of each sheet is a Total row, which is 25.50 units tall. When my users insert a new line or batch, the row height stays absolute to that row, rather than being relative. How can I fix this? New line and new batch codes below.
Code:
Sub InsertBatch()'
' InsertBatch Macro
'
' Keyboard Shortcut: Ctrl+Shift+N
Application.ScreenUpdating = False
Dim rngToCopy As Range
Set rngToCopy = ThisWorkbook.Worksheets("The Hidden Works").Range("A8:U19")
rngToCopy.Copy
Selection.EntireRow.Range("A1").Insert Shift:=xlDown
Application.CutCopyMode = False
Sheets("The Hidden Works").Visible = -1
Application.ScreenUpdating = True
End Sub
Code:
Sub InsertRow()
Application.ScreenUpdating = False
Sheets("The Hidden Works").Visible = -1
Sheets("The Hidden Works").Range("A21:U21").Copy
ActiveCell.Rows("1:1").EntireRow.Insert Shift:=xlDown
Sheets("The Hidden Works").Visible = 2
Application.ScreenUpdating = True
End Sub