Bob
First, go to Tools - Options - General (in the VBE) and make sure that it's
set to break on errors in class modules. If you have an error in your
Initialize event and don't have this type of error handling set, all errors
that if finds in the userform's class module will show up as an error on
that line.
Post back if that doesn't work. If it doesn't, you have bigger problems and
I will tell you how screwed you are. Hopefully, that will highlight the
offending code in the Initialize event. If it does, post the code that's
highlighted.
--
Dick Kusleika
MVP - Excel
www.dicks-clicks.com
Post all replies to the newsgroup.
"bob cochran" wrote in message
...
In that case, could you help me with an error? The reason I changed it
was because I was getting the error - Run-time error "91": Object
variable or With block variable not set.
When I go to Debug, it takes me to the code that loads the userform.
Sub showforms()
frmMaintest.Show 'this line is highlighted.
End Sub
I need to get all the VB Help files loaded. Do they explain in detail
what the error messages mean?
Thanks for your help and patience. I've only been working with VBA for
a few weeks now.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!