PDA

View Full Version : Solved: VBA Run-time-error '424'



simora
12-27-2011, 06:24 PM
I have an Excel Userform that was working but suddenly I'm getting a
Run-time-error '424'

This is what is somehow causing the error


Sub MonthlyExpense()
DForm.Show
End Sub


Any ideas what could be causing this?

Aflatoon
12-28-2011, 12:24 AM
It is not that code (unless that is not the form name) - the error is most likely in the Initialize or Activate event of the userform. You may press f8 to step into that.

simora
12-30-2011, 05:28 PM
Thanks Afatoon:

The problem was in the Initialize event. A typo.