Solved

Excel VBA

Posted on 2003-11-12
8
368 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 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

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!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

724 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