I know this thread has been marked "Solved", but I thought the OP might find this rather short function to be of interest. Simply pass it an array (sorted or not) and an element to add to it and it will return an array (always zero based even if the original array wasn't)...
You could call it from a macro like this (as but one possible way)...
EDIT NOTE: I just noticed that all the messages in the thread (before mine) were posted in 2005, but this thread showed up in the current list of messages for this month (which is why I answered it without looking at the dates)... my question is why did this show up in the list as if it were a newish thread?
Bookmarks