Solved

Excel VBA

Posted on 2003-11-12
8
364 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
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 11

Accepted Solution

by:
Steiner earned 125 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VBA loop through headers using value 3 56
Restricting text box entry from \/:?<>"| 9 76
Error when passing an argument to a vb6 that contains  '/' 7 31
Help me. 3 45
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…

911 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now