Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Never seen this

Question, has anyone else experienced the following?



Have a project that uses several class modules and a couple of dozen
forms, Friday I added a form, that started RESETTING my project every time it
would unload. However I found out a most interesting fact. It will only Reset
my project if the VISUAL BASIC EDITOR IS OPEN. If it is closed everything
works peachy!! What did (do) I do!


Ben

--
When you lose your mind, you free your life.
  #2   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Never seen this

Never mind that, now it's not being consistent at all, sometimes it seems to
reset the program other times it doesn't I even removed that userform and
added a whole other new one. a blank form resets the project, non blank
resets the project, if I remove that userform all other forms work great and
dandy, if i add one more, it will reset the project after it has appeared.
Confused and Frustrated,

Is there maybe a limit to the amount of forms Excel can handle in VBA?
Ben

--
When you lose your mind, you free your life.


"ben" wrote:

Question, has anyone else experienced the following?



Have a project that uses several class modules and a couple of dozen
forms, Friday I added a form, that started RESETTING my project every time it
would unload. However I found out a most interesting fact. It will only Reset
my project if the VISUAL BASIC EDITOR IS OPEN. If it is closed everything
works peachy!! What did (do) I do!


Ben

--
When you lose your mind, you free your life.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,452
Default Never seen this

There is no definite answer for this, but my impression is that if the
number of forms, normal modules and class modules together go above 100 you
could get
trouble.
Ideally the size of any individual module or form when in file form should
be below 64Kb, but I found that the above limit is more important.

Try running the code cleaner from AppsPro:

http://www.appspro.com/Utilities/CodeCleaner.htm

It may fix your problem.

RBS


"ben" (remove this if mailing direct) wrote in message
...
Never mind that, now it's not being consistent at all, sometimes it seems
to
reset the program other times it doesn't I even removed that userform and
added a whole other new one. a blank form resets the project, non blank
resets the project, if I remove that userform all other forms work great
and
dandy, if i add one more, it will reset the project after it has appeared.
Confused and Frustrated,

Is there maybe a limit to the amount of forms Excel can handle in VBA?
Ben

--
When you lose your mind, you free your life.


"ben" wrote:

Question, has anyone else experienced the following?



Have a project that uses several class modules and a couple of
dozen
forms, Friday I added a form, that started RESETTING my project every
time it
would unload. However I found out a most interesting fact. It will only
Reset
my project if the VISUAL BASIC EDITOR IS OPEN. If it is closed everything
works peachy!! What did (do) I do!


Ben

--
When you lose your mind, you free your life.


  #4   Report Post  
Posted to microsoft.public.excel.programming
ben ben is offline
external usenet poster
 
Posts: 232
Default Never seen this

: - )
Ironically enough I ran the code cleaner right before I read your reply to
my post. I have only 37 userforms, but the problem seemed to be a combination
of the Pcode leftover somewhere and the way I loaded the form. Thanks RB
Ben

--
When you lose your mind, you free your life.


"RB Smissaert" wrote:

There is no definite answer for this, but my impression is that if the
number of forms, normal modules and class modules together go above 100 you
could get
trouble.
Ideally the size of any individual module or form when in file form should
be below 64Kb, but I found that the above limit is more important.

Try running the code cleaner from AppsPro:

http://www.appspro.com/Utilities/CodeCleaner.htm

It may fix your problem.

RBS


"ben" (remove this if mailing direct) wrote in message
...
Never mind that, now it's not being consistent at all, sometimes it seems
to
reset the program other times it doesn't I even removed that userform and
added a whole other new one. a blank form resets the project, non blank
resets the project, if I remove that userform all other forms work great
and
dandy, if i add one more, it will reset the project after it has appeared.
Confused and Frustrated,

Is there maybe a limit to the amount of forms Excel can handle in VBA?
Ben

--
When you lose your mind, you free your life.


"ben" wrote:

Question, has anyone else experienced the following?



Have a project that uses several class modules and a couple of
dozen
forms, Friday I added a form, that started RESETTING my project every
time it
would unload. However I found out a most interesting fact. It will only
Reset
my project if the VISUAL BASIC EDITOR IS OPEN. If it is closed everything
works peachy!! What did (do) I do!


Ben

--
When you lose your mind, you free your life.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"