?
Solved

Excel VBA

Posted on 2003-11-12
8
Medium Priority
?
369 Views
Last Modified: 2010-05-01
Hi everybody,

I'd like to speed up my application. How to turn on/off the window refreshing while the data processing (unfortunately I have forgot).

with best regards

Janos
0
Comment
Question by:kacor
[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
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 11

Accepted Solution

by:
Steiner earned 500 total points
ID: 9731944
Use:
Application.ScreenUpdating=False
0
 
LVL 8

Expert Comment

by:Rog
ID: 9732163
Another way to do this would be to not make the application visible until all updates are made.  At the end of the procedure.

Rog
0
 
LVL 10

Author Comment

by:kacor
ID: 9732978
Hi Steiner and Rog,

thamks for your aid

with best regards

Janos
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 11

Expert Comment

by:Steiner
ID: 9737549
No problem, that's what we are here for (besides for asking own questions of course).
And thanks for the grade!

Greetings
Steiner
0
 
LVL 10

Author Comment

by:kacor
ID: 9737655
Hi Steiner,
you know earlier I made a lot of ExcelVBA macros (even of over 1000 lines - this was the german version) but I really forgot this command. Thanks again

wbr
Janos
0
 
LVL 2

Expert Comment

by:venkatravi_78
ID: 9738660
if you r not using early binding then why dont u use it. early binding will make the process faster than the late one.

try this if u r not using this:

dim <variable name> as Excel.application
'this uses the previous instance of the excel application if any running
set <variable name>=getobject(,"excel.application")
'this where we create the object.
set <variable name>=createobject("excel.application")

regular code....

this will help a lot
0
 
LVL 10

Author Comment

by:kacor
ID: 9763425
hi venkatravi_78,

thanks for the idea!

regards

Janos
0
 
LVL 2

Expert Comment

by:venkatravi_78
ID: 9769203
did u get it working....
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month8 days, 22 hours left to enroll

764 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