Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Modal form won't leave

I have a vb routine that calls up a userform to get information, once
completed you click a button and the rest of the process commences back
in the spreadsheet. This process can take up to a minute or two
depending on the amount of data being processed.

The problem is that the userform won't leave the screen, until the
entire routine is done. I have set the userform to hide when the
button is clicked, I have put another hide command further down in the
heart of the code, I have tried the unload command. Nothing seems to
work, except for making it NOT modal, then it works just fine, except
the rest of the code has already bailed, because it went on without
waiting for the information.

What am I missing? Surely there is a way to make this window go away.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Modal form won't leave


Sometimes this happens when ScreenUpdating has been set to false.
If that is the cause, setting it back to true before dropping the form
usually helps.


--
Regards,
Tom Ogilvy


"Merlin" wrote:

I have a vb routine that calls up a userform to get information, once
completed you click a button and the rest of the process commences back
in the spreadsheet. This process can take up to a minute or two
depending on the amount of data being processed.

The problem is that the userform won't leave the screen, until the
entire routine is done. I have set the userform to hide when the
button is clicked, I have put another hide command further down in the
heart of the code, I have tried the unload command. Nothing seems to
work, except for making it NOT modal, then it works just fine, except
the rest of the code has already bailed, because it went on without
waiting for the information.

What am I missing? Surely there is a way to make this window go away.


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
Can a non-modal form be viewed w/o Excel in the background? cjmd Excel Programming 4 February 22nd 06 05:32 PM
Forms that are modal in 97 are not modal in 2003 Old Car Excel Discussion (Misc queries) 1 April 27th 05 08:25 AM
Forms that are modal in 97 are not modal in 2003 Old Car Excel Programming 1 April 27th 05 08:25 AM
Non -Modal form disappears Chris W[_3_] Excel Programming 2 March 17th 05 06:11 PM
Modal User Form Jim M[_3_] Excel Programming 1 November 4th 03 10:38 PM


All times are GMT +1. The time now is 04:49 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"