Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 112
Default Error loading forms

Hello!
Is really ALL information flushed when a form is unloaded?
I have a small Menu-form loading another form and setting certain parameters.
The 1st form is unloaded when the second is loaded and shown.
If I exit the second form (and unloading it), loading (via the code) the
Menu-form again and select to load a new instance of the second form
(evetually with different parameters), the program hangs at the loading with
a white empty form-frame and will never complete.
Why?

Best regards
Mats
  #2   Report Post  
Posted to microsoft.public.excel.programming
jjk jjk is offline
external usenet poster
 
Posts: 42
Default Error loading forms

Hi Mats,

Are you using global variables or arrays. These get reset when a form
is displayed.
http://support.microsoft.com/default...b;en-us;169621
I am sure you are setting public variables in the form before showing
it. You might want to add some sanity error checks to identify the
problem.

This being said.
Why dont you examine the design of your code calling the forms. You
might want to load all the forms (Load frm). Then show and hide your
forms as required without unloading them (frm.show frm.hide). You can
unload the form when you are done with the use of the menu.

Regards,
Jayant

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 - error saving file & error loading dll TinaF Excel Discussion (Misc queries) 0 July 1st 09 01:49 PM
Error Loading DLL chris Excel Discussion (Misc queries) 0 June 26th 08 02:03 PM
saving and loading contents of user forms bennyob Excel Discussion (Misc queries) 0 November 7th 05 02:05 PM
Error in loading DLL Minilek Excel Programming 3 August 3rd 04 08:03 AM
Error Loading dll Jeffrey Excel Programming 1 October 21st 03 10:29 PM


All times are GMT +1. The time now is 11:38 AM.

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

About Us

"It's about Microsoft Excel"