![]() |
#4
|
||||
|
||||
![]()
Bob: There really isn't an issue with small datasets - inefficient code will still work quite quickly with those. The efficiency issues become apparent when large datasets are involved. As whatsup's code shows, efficiency gains of up to 10x are possible and, with large datasets, that can make a significant difference.
PS: Although it's good practice, I doubt that cleaning up after the 'Set' variables makes a material difference to the execution speed.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wierd "script code" in a downloaded .doc file | CNBarnes | Word | 2 | 10-18-2012 02:07 AM |
![]() |
krishnaoptif | Word VBA | 9 | 06-22-2012 05:08 AM |
![]() |
Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |
Rules and Alerts: "run a script"? | discountvc | Outlook | 0 | 06-15-2010 07:36 AM |
An "error has occurred in the script on this page" | decann | Outlook | 8 | 09-03-2009 08:54 AM |