Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Repaint causes form to flicker

I created a user form which has a calandar on it for the user to enter a date and then click a button to run a macro. I also have a progress indicator on it which displays the four or five steps the macro takes and has a percentage next to it indicating how far along it is. I have screenupdating off and use the repaint feature to update the percentage. The problem is that the repaint causes the form to flicker a lot. Is there a way around this

The progress indicator may be a crude way of doing it
for count = 1 to activesheet.usedrange.rows.coun
a=a+
userform.label = format(a/count,"0%"
userform.repain
code..

I thought I might make a new form for the progress indication (currently the progress indication is a part of the user form). Is there a better way BESIDES the application.statusbar ? Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 214
Default Repaint causes form to flicker

Hi Chad;
You can try:
for count = 1 to activesheet.usedrange.rows.count
a=a+1
DoEvents
userform.label = format(a/count,"0%")
code...

MP

"Chad" a écrit dans le message de
...
I created a user form which has a calandar on it for the user to enter a

date and then click a button to run a macro. I also have a progress
indicator on it which displays the four or five steps the macro takes and
has a percentage next to it indicating how far along it is. I have
screenupdating off and use the repaint feature to update the percentage.
The problem is that the repaint causes the form to flicker a lot. Is there
a way around this?

The progress indicator may be a crude way of doing it:
for count = 1 to activesheet.usedrange.rows.count
a=a+1
userform.label = format(a/count,"0%")
userform.repaint
code...

I thought I might make a new form for the progress indication (currently

the progress indication is a part of the user form). Is there a better way
BESIDES the application.statusbar ? Thanks


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Repaint causes form to flicker

Awesome! thank you.
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 SP1 will not repaint the entire spreadsheet. Dan D. Excel Discussion (Misc queries) 3 November 25th 08 01:43 AM
Excel window repaint slow/stuck hmm Excel Discussion (Misc queries) 1 August 13th 08 02:44 PM
Form Repaint Problem ybazizi Excel Discussion (Misc queries) 0 January 18th 06 05:32 PM
Mouse-move flicker, modeless form & shape selected Paul Stevens Excel Programming 2 February 10th 04 02:07 PM
How to force repaint of popup commandbar? RB Smissaert Excel Programming 0 December 17th 03 01:59 PM


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