Whenever you use For.Next loops, it is faster NOT to use the countername after Next (of the For.Next loop). In nested loops, it produces significantlyfaster code.
Sub Form_Load ()Dim TStart!Dim I As IntegerTStart! = Timer For I = 1 To 32000 Next IDebug.Print Timer - TStart!TStart! = Timer For I = 1 To 32000 Next ' I ' For readability, it is better ' to show the counter name ' by commenting it out. Debug.Print Timer - TStart!End Sub
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.
Related Posts
- Use Web Workers to Do the Script-intensive Work in the Background
- Microsoft, IBM Make Analytics Announcements at Hadoop Conference
- How HealthStream Learning Center Supports Healthcare Education and Compliance
- SpaceX under fire for damaging ecosystem
- Identifying all the Index(s) Available on a Table in MySQL
























