Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Redraw Application Window

How Do I cause the Excel Application Window to re-draw on
screen. I have a form in one workbook that is open. I want
to close the current workbook and open another (which is
working) but when the macro I am using runs the form from
the previous workbook is still visible. For whatever
reason the screen does not redraw. The workbook closes as
expected, but the screen does not refresh and the form
from the first workbook is still visible even though its
workbook has closed. I know it is a matter of just causing
the screen to refresh, but I am not sure how to make that
happen.

Thanks in advance.

Kevin
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Redraw Application Window

I sounds like you have turned screen updating to off, so turn it back on,
then off again if that is what you want

Application.ScreenUpdating = True
Application.ScreenUpdating = False


or if it is on and this really is a problem then put in lines like (turn it
off, then back on to stimulate the screen update - throw in a couple of
doevents as well).

DoEvents
Application.ScreenUpdating = False
Application.ScreenUpdating = True
DoEvents
--
Regards,
Tom Ogilvy

"Kevin" wrote in message
...
How Do I cause the Excel Application Window to re-draw on
screen. I have a form in one workbook that is open. I want
to close the current workbook and open another (which is
working) but when the macro I am using runs the form from
the previous workbook is still visible. For whatever
reason the screen does not redraw. The workbook closes as
expected, but the screen does not refresh and the form
from the first workbook is still visible even though its
workbook has closed. I know it is a matter of just causing
the screen to refresh, but I am not sure how to make that
happen.

Thanks in advance.

Kevin



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default Redraw Application Window

Thanks Tom! That fixed it!
-----Original Message-----
How Do I cause the Excel Application Window to re-draw on
screen. I have a form in one workbook that is open. I

want
to close the current workbook and open another (which is
working) but when the macro I am using runs the form from
the previous workbook is still visible. For whatever
reason the screen does not redraw. The workbook closes as
expected, but the screen does not refresh and the form
from the first workbook is still visible even though its
workbook has closed. I know it is a matter of just

causing
the screen to refresh, but I am not sure how to make that
happen.

Thanks in advance.

Kevin
.

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
How to Determine if Application Window Still Active Edwin Kelly Excel Discussion (Misc queries) 3 June 26th 07 05:42 PM
How do I open a new window for each excel application? Kris New Users to Excel 2 February 21st 06 09:59 PM
How to set Excel to open a new window for each application Luke Excel Discussion (Misc queries) 1 September 28th 05 11:50 PM
How do I set up Excel to open a new instance/application window w. DK9144 Excel Discussion (Misc queries) 1 February 21st 05 04:34 PM
Locking the Application Window size Dusan Excel Programming 1 November 24th 03 01:55 AM


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