PC Review


Reply
Thread Tools Rate Thread

17 ways to Optimize VBA Code for FASTER Macros

 
 
Ashish Jain
Guest
Posts: n/a
 
      27th Dec 2010
Here is a summary of the article:
1. Analyze the Logic
2. Turn off ScreenUpdating
3. Turn off 'Automatic Calculations'
4. Disable Events
5. Hide Page breaks
6. Use 'WITH' statement
7. Use vbNullString instead of ""
8. Release memory of Object variables
9. Reduce the number of lines using colon(
10. Prefer constants
11. Avoid Unnecessary Copy and Paste
12. Clear the Clipboard after Paste
13. Avoid 'Macro Recorder' style code.
14. Use 'For Each' than 'Indexed For'
15. Use 'Early Binding' rather 'Late Binding'
16. Avoid using Variant
17. Use Worksheet Functions wherever applicable

Do read full article to understand the logic behind them.
http://www.excelitems.com/2010/12/op...er-macros.html


_______________________________________
Thanks & Regards
Ashish Jain
(Microsoft Certified Application Specialist)
(Microsoft Certified Professional)
http://www.excelitems.com
http://www.openexcel.com
_______________________________________
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
17 ways to Optimize VBA Code for FASTER Macros Ashish Jain Microsoft Excel Misc 0 27th Dec 2010 11:11 AM
17 ways to Optimize VBA Code for FASTER Macros Ashish Jain Microsoft Excel Discussion 0 27th Dec 2010 11:04 AM
7 Ways to Speed up and Optimize Windows XP Code name 47 Windows XP General 8 3rd Apr 2007 01:25 AM
7 Ways to Speed up and Optimize Windows XP Code name 47 Windows XP Help 6 3rd Apr 2007 12:47 AM
Re: Running Macros faster - CODE JE McGimpsey Microsoft Excel Misc 0 15th Jul 2004 06:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:09 PM.