Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gentlemen, I am new to Excel VBA a

Status
Not open for further replies.

athomas236

Mechanical
Jul 1, 2002
607
Gentlemen,
I am new to Excel VBA and have got to the stage when I write my own function procedures and make available to all my spreadsheets as addins. I have about 40 engineering functions/addins and the number is growing.

I am now wandering if there is any advantage in compiling the VBA functions or addins in terms of increasing speed.

If there is, is there a good book that would tell me how to proceed.

Regards,
athomas236
 
Replies continue below

Recommended for you

I don't really think that speed will be a major factor in either path you choose. It really only affects how you want to distribute the functions. If it's all in-house, you can simply add the module to personal.xls for each system. But, if you go this route, you may want to add a digital signature to avoid the constant macro virus warnings. For in-house projects, you can sign your own programs. See the following MSDN article for more info.


DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Try one of John Walkenbach's books I use his book Excel 2000 Power Programming With VBA constantly. If you are new to Excel/VBA, you will find his books extremely useful anyway.

My experience is that VBA codes can be sped up a lot. I would also suggest you use the timer function to see where your time consuming subroutines are.
 
I have moved chunk of my VBA code to ActiveX DLL before and did a comparison of the speed. Surprisingly the executing speed of the two are almost the same. To my own understanding, VBA code cannot be compiled. The way to speed it up is code optimization in the Loop, With block etc.

dongxiao PE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor