Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Flickering of the Screen when the Macro runs.

Hi,

I have a Macro which runs for around 2 min. Two Excel
sheets are involved in this Macro. When the Macro runs,
the user sees the screen flickering and the focus keeps
shifting between the screens... all the while the macro
runs i.e for around 2 minutes. I also included a progress
bar in the macro, so the user sees the progress bar while
the macro runs, but the screen keeps flickering under
this progress bar all the while and this is very
disgusting to watch.
I want the focus to be on some blank screen (which does
not flicker) with the progress bar.
what do i do to achieve this. Could someone help me out
with this!!

Thanks in advance for any help.
Regards,
Neeraja.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Flickering of the Screen when the Macro runs.

Here's a little more information for reporting the status/progress of an
executing macro. Go to this excellent link of various Excel VBA code
routines http://www.cpearson.com/excel.htm and download ProgressReporter
(about the 7th item down on the page I believe). I think it will do exactly
what you are looking for and coupling this with turning off the screen
updating should resolve your flicker/focus annoyance.

Rodg2000

(remove the _nospam to email)


"Rodg2000" wrote in message
...
If you put Application.ScreenUpdating = False at the start of your macro
code, that should freeze the screen until the macro is completed. Not

sure
what effect this will have on your progress bar, depending on where and

how
it is displayed.

Rodg2000

(remove the _nospam to email)

"Neeraja" wrote in message
...
Hi,

I have a Macro which runs for around 2 min. Two Excel
sheets are involved in this Macro. When the Macro runs,
the user sees the screen flickering and the focus keeps
shifting between the screens... all the while the macro
runs i.e for around 2 minutes. I also included a progress
bar in the macro, so the user sees the progress bar while
the macro runs, but the screen keeps flickering under
this progress bar all the while and this is very
disgusting to watch.
I want the focus to be on some blank screen (which does
not flicker) with the progress bar.
what do i do to achieve this. Could someone help me out
with this!!

Thanks in advance for any help.
Regards,
Neeraja.





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 576
Default Flickering of the Screen when the Macro runs.

Neeraja,

Also - haven't seen your code but suspect that you might be using
".Select"
in your code.

Try to eliminate that as much as possible. This will speed up your code.
Range("A1").Select
Selection.Copy
can be replaced with
Range("A1").Copy
also
Sheets("Sheet1").Range("A1").Copy _
Destination:= Sheets("Sheet2").Range("A1")
will copy and paste without selecting.
Replace Sheet1 and Sheet2 with the sheet names, set the Range to what
ever you need.

Instead of a progress bar - I use
Application.StatusBar = "I am at Step 1"
place these after portions of your code (edit to suit). But be sure to end
with
Application.StatusBar=False
The messages will appear on the Status Bar at the bottom of the screen.

--
sb
"Neeraja" wrote in message
...
Hi,

I have a Macro which runs for around 2 min. Two Excel
sheets are involved in this Macro. When the Macro runs,
the user sees the screen flickering and the focus keeps
shifting between the screens... all the while the macro
runs i.e for around 2 minutes. I also included a progress
bar in the macro, so the user sees the progress bar while
the macro runs, but the screen keeps flickering under
this progress bar all the while and this is very
disgusting to watch.
I want the focus to be on some blank screen (which does
not flicker) with the progress bar.
what do i do to achieve this. Could someone help me out
with this!!

Thanks in advance for any help.
Regards,
Neeraja.



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
VBA macro runs fine, but freezes if I try to do ANYTHING else whileit runs Rruffpaw Setting up and Configuration of Excel 1 September 17th 11 01:25 PM
Blinking/flickering screen Henning Excel Discussion (Misc queries) 2 September 10th 08 02:35 AM
FLICKERING SCREEN WHEN WORKING Henning Excel Discussion (Misc queries) 0 April 3rd 07 03:08 PM
FLICKERING...(fore ground font color with flickering).. Eddy Stan Excel Discussion (Misc queries) 5 March 23rd 06 06:20 PM
Screen flickering when updating textboxes Fred. Mo Excel Programming 0 September 30th 03 01:10 PM


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