I am using the following to hide a userform after opening a workbook. It worked fine the first few times. Then I start getting an error message that the macro "KillTheForm" cannot be found. Any idea what the problem is?
Application.OnTime Now + TimeValue("00:00:02"), "KillTheForm"
Sub KillTheForm()
frmMenu.Hide
Call ListView
frmMarginalCosts.Show
End Sub
Application.OnTime Now + TimeValue("00:00:02"), "KillTheForm"
Sub KillTheForm()
frmMenu.Hide
Call ListView
frmMarginalCosts.Show
End Sub