run macro faster

zakir_vjti20

New Member
Joined
Jul 25, 2010
Messages
3
Hi all,

I want to know that ho to run macros faster (2 to 3 times the usual speed) in excel for retrieving data from a web page and copying in excel sheet.

Thanking u.
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

jbeaucaire

Well-known Member
Joined
May 8, 2002
Messages
6,012
Most common technique is to turn off ScreenUpdating at the start of your macro, turn it back on when the macro is done.

Else, post your macro and let us take a look.
 

Norie

Well-known Member
Joined
Apr 28, 2004
Messages
75,767
Office Version
365
Platform
Windows
You could set calculation to manual.

Mind you using either suggestion might not make any difference at all, the problem could lie elsewhere and be nothing to do with the code.:)
 

HalfAce

MrExcel MVP
Joined
Apr 6, 2003
Messages
9,453
how to run macros faster (2 to 3 times the usual speed)
How fast your code executes depends on a number of factors.
The code itself (what all it's doing), the memory & processing speed of your particular machine, what other applications are running at the time, etc, etc.

So... the speed at which it runs can vary noticeably, even on the same machine. There is no way I've ever heard of to actually speed things up, but (as jbeaucaire & Norie point out) there are default settings that slow it down which can be turned off.

And then lastly, it could be the code itself can be rewritten to run more efficiently, which may be able to cut its run time some.
 

Subscribe on YouTube

Watch MrExcel Video

Forum statistics

Threads
1,106,852
Messages
5,513,762
Members
408,967
Latest member
PhilipDayPlanner

This Week's Hot Topics

  • Sort code advice please
    Hi, I have the code below which im trying to edit but getting a little stuck. This was the original code which worked fine,columns A-F would sort...
  • SUMPRODUCT with nested If statement
    Hi everyone, Hope you're all well. I'm hoping someone will be able to point me in the right direction with a problem I'm having with a SUMPRODUCT...
  • VBA - simple sort is killing me!
    Hello all! This should be so easy, but not for me, apparently! I have a table of data that can be of varying lengths and widths. My current macro...
  • Compare Two Lists
    I have two Lists and I need to be able to Identify differences between them. List 100 comes from a workbook - the other is downloaded form the...
  • Formula that deducts points for each code I input.
    I am trying to create a formula that will have each student in my class start at 100 points and then for each code that I enter (PP for Poor...
  • Conditional formatting formula required for day of week and a value
    Hi, I have a really simple spreadsheet where column A is the date, column B is the activity total shown as a number and column C states the day of...
Top