QUOTE (hynr @ July 27, 2013 12:51 pm) | ||||
1. On my computer with a set of 25267 records that macro code takes 320 seconds; if you wrap it into a transaction then it takes about 20 seconds. 2. Note that the above code will probably not generate desired results on sets of more than 100 caches. My sense is that if others are using it, then perhaps that limitation is problematic. Here is an alternative:
|
I am probably doing something wrong. I copied your code into a macro and have tested it a couple of times and it does not seem to do anything, or at least it has not created the numbers in the UserData column. I do see what you mean about my code and the long run time on larger databases. I tried it on a database that had over a 1000 waypoints and it did have a very long run time. I did not time it but it ran so long I was starting to think it was not doing anything when it finally finished.