.show starts debugger upon window change

T

Tony

When I open a form using a macro button, I enter some data then click on
another macro button to copy form data to the spreadhsheet. When I try to go
back to another window to get more data, the VBA Debugger opens up and hight
lights the following statement:

LienRegistrationForm.Show

I have to close the debugger which closes the form and I lose the form with
the data. The statements prior to that just clear spreadsheets cells, which
works fine.

Any ideas?
 
C

Chip Pearson

To track down the actual problem, go to the Tools menu in VBA, choose
Options, then the General tab. In the "Error Trapping" section, select
"Break in Class Module". Now, rerun the code. VBA will debug on the
actual line of code causing the problem, not the code that called the
class (userform).

Cordially,
Chip Pearson
Microsoft Most Valuable Professional
Excel Product Group, 1998 - 2009
Pearson Software Consulting, LLC
www.cpearson.com
(email on web site)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top