Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default UserForm Not Hiding

I have a userform. Before I hide it, I do this:
Application.ScreenUpdating = True
Application.EnableEvents = True
Then do this:
UserForm1.Hide
But the form does NOT "hide" until way later. Ideas?

Is there a "screen refresh" command or something like that. I have not had
this problem before.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27
Default UserForm Not Hiding

On Nov 28, 1:13 pm, Mike H. wrote:
I have a userform. Before I hide it, I do this:
Application.ScreenUpdating = True
Application.EnableEvents = True
Then do this:
UserForm1.Hide
But the form does NOT "hide" until way later. Ideas?

Is there a "screen refresh" command or something like that. I have not had
this problem before.


To answer your question, no... I don't think there is any other
screen refresh other than 'Application.ScreenUpdating = True'. There
is a UI refresh called with 'UserForm1.Repaint'.

I would try 2 things... first, i would put an additional
'Application.ScreenUpdating = True' right before the 'UserForm1.Hide'
statement and see if taht works... Next, if that doesn't work, I
would put a repaint in front of the hide statement. It sounds like
there is some intense processing going on in the back and Excel can't
update the screen before you want it to.

I hope that helps.

theSquirrel
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
Hiding the Excel UI when running a userform Ken Warthen[_2_] Excel Programming 7 October 12th 07 01:58 AM
Hiding/Showing OptionButtons on a UserForm ryguy7272 Excel Programming 5 August 2nd 07 02:56 PM
Dynamically Hiding portions of a UserForm fly_fish_boy Excel Programming 0 March 14th 06 05:56 PM
Hiding A TextBox On A UserForm Under A CommandButton Minitman[_4_] Excel Programming 5 August 26th 05 09:56 PM
UserForm not hiding Tony Bender Excel Programming 4 October 9th 03 08:42 PM


All times are GMT +1. The time now is 03:51 AM.

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"