Hi all,
I'm working on a spreadsheet for analysing fatigue on wind turbine blades. I have no formal programming training so what you see when you dig in to the VBA may shock and disgust you, but could anyone have a quick look over the code and suggest ways of speeding it up? I've done all the stuff that I can find on the net (turning off screen updating, declaring variables etc) but although screen updating definitely improved things I timed it and I think declaring variables actually slows it down. I'm not after code rewriting, just some pointers (it's the only way I'll learn). The modules that need optimising are:
TopLevel
CopyStrainData
PeakValley
HalfRainflowCount
GoodmanDiagramLookup
The rest are just left over from me working stuff out. Screen updating is turned off in TopLevel which calls the other files as and when they are needed.
Any help will be much appreciated as it already takes 5 mins to run and I will soon be using it with input files that are 30 times longer, and I need to run it about 50 times so it will soon add up!
http://www.dur.ac.uk/p.r.greaves/Rai...heet_2007.xlsm - 889 kb
Thanks,
Pete
Bookmarks