Solved

Excel VBA

Posted on 2003-11-12
8
363 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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…

743 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

12 Experts available now in Live!

Get 1:1 Help Now