I do have experience with excel and VBA. Its my job. And I do have to disagree a little bit. It does work through the whole system to some degree. It isn't at the system level (like C might be considered), but I can interact with any program that has VBA interaction written in, just like Scriptable apps on a Mac open up for Applescript, but can be used through GUI scripts if they are not.
was written specifically for Excel.
no way. The Vb editor is actually a standalone program. VBA is a scripting type language written for the entire office platform, and beyond. The only difference is in the VB editor. If your writting inside the Word VBE, you do not have to explicitly create a word object. But I can use data from word, activate Excel and write/run my code exactly as if I was in Excel VBE, just have to create the excel object link (and reference for excels VBA "library" or "dictionary").
Which is why I did find it a little disappointing that Applecript runs so slow. Its not that different from VBA in essence, just that the editor is a free standing program.
I am really looking for anywhere that the "best practices" are talked about.
For example:in VBA, you don't normally want to interact with a full worksheet line by line, cell by cell. If you can pull it into memory as an array, you can work thorugh an entire sheet of data in less than 1 second. then drop it back in to the original range again. Where it might take minutes to work through by cells individually.
Or you should set the following code to stop Excel trying to update the screen as you amek changes. Prevents the calculations too.
Application.ScreenUpdating = False
Thanks for your help so far. I know that part about tracking down the slower parts of your code (although I can only find a way of recording whole seconds, used to decimal seconds when timing my procedures). I really am trying to find those little secrets about how to get it to speed up by using ... etc...
Thanks alot everyone... hope to hear alot more stuff.
Jason