I'm at a loss as to why, but when I run this code the first time, it runs as expected. When I try to run it again, it fails at the line in red. Yes, there is more code underneath the red line, but I'm only posting up to the failure point.
Rich (BB code):
Private Sub cmd_Submit_Click()
Application.DisplayAlerts = False
Application.ScreenUpdating = False
Dim m As Workbook
Dim mT, mN, mV, mI As Worksheet
Dim mILR, mINR As Long
Set m = ThisWorkbook
Set mT = m.Sheets("Template")
Set mV = m.Sheets("Variables")
Set mI = m.Sheets("Inventory")
mINR = Sheets("Inventory").Range("D" & Rows.Count).End(xlUp).Offset(1).Row
Last edited by a moderator: