Category Archives: Arrays

Transferring data with arrays

The earlier post: Transferring data within VBA looked at some important aspects of transferring data between subroutines in Excel VBA.  This post will look at arrays in particular, and some peculiarities that affect the way they work. VBA arrays are a very … Continue reading

Posted in Arrays, Excel, VBA | Tagged , , , , , , , | Leave a comment

The speed of loops

Commenting on the Good Practice post, John Tolle pointed out that with a collection it was very much quicker to loop using a For each loop than iterating by index, using a for, next loop.  I did some simple tests on this, … Continue reading

Posted in Arrays, Excel, VBA | Tagged , , , , , | 8 Comments

Using the DMax Function …

… and an alternative. In this discussion at Eng-Tips I recommended the use of the DMAX() function to extract maximum values from data grouped with different text labels.  In the process I needed to adjust the selection criterion to generate the … Continue reading

Posted in Arrays, Excel | Tagged , , , | 4 Comments

Extracting data from a 3D range

I recently needed to extract data from a series of tables on separate worksheets, into a form suitable for plotting on an XY graph.  In Lotus 123 this would be a piece of cake, since the Lotus @INDEX function has … Continue reading

Posted in Arrays, Excel | Tagged , , , | 3 Comments

Continuous beam with varying stiffness

Previous Splinebeam post One of my aims in developing the splinebeam function is to carry out non-linear analysis of reinforced concrete beams, allowing for the greatly reduced flexural stiffness of reinforced concrete sections after cracking of the concrete.  To that … Continue reading

Posted in Arrays, Beam Bending, Excel, Finite Element Analysis, Maths, Newton, UDFs, VBA | Tagged , , , , , , , | 3 Comments