Solved

Suspend Excel VBA to allow form to update

Posted on 2011-03-07
3
348 Views
Last Modified: 2012-05-11
I have a long process that grabs workbooks from out Intranet, copies them into a master file locally and save the local workbook.  There can be from 25 to 138 worksheets downloaded and I hav on the main form a "countdown" lablel that shouldupdate each time one of the intranet worksheets have been copied locally.  It works when I step through the code, but when the code runs, it appreantly is going so fast, the form does not update.  How can I get the form to reflect the information as each worksheet is copied?
0
Comment
Question by:ssmith94015
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 35058302
Use:
formname.Repaint
assuming you have a modeless form.
0
 

Author Comment

by:ssmith94015
ID: 35058367
I assume I should put that just after the line where the form is updated with the current count.  Let me try and will be right back.
0
 

Author Closing Comment

by:ssmith94015
ID: 35058379
Works like a charm!  Thank you.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question