Category Archives: Excel

Evaluate Function

It would often be convenient to evaluate a function entered as text; for instance if we have the function for the deflection of a cantilever under point loading at the end: F*L^3/(3*E*I) then it would be convenient to be able … Continue reading

Posted in Excel, Maths, UDFs | Tagged , , | 9 Comments

Section Properties of Defined Shapes – Spreadsheet

Download section properties spreadsheet from: http://www.interactiveds.com.au/software/Section%20Properties03.zip http://www.interactiveds.com.au/software/Section%20Properties07.zip Section properties for 35 defined shapes Section properties from coordinates Section properties UDF Screen shots:

Posted in Excel, Maths, UDFs | Tagged | 29 Comments

Section Properties UDF and UDF charting

The technique for calculating section properties from coordinates is conveniently coded into a UDF: Function Area(xy_range As Variant) As Double Dim XYcells As Variant Dim N As Long, NumX As Long Dim XD As Double, YSum As Double XYcells = … Continue reading

Posted in Arrays, Charts, Excel, UDFs | Tagged | 6 Comments

Ranges and Arrays – 2

Yesterday we looked at how to get data from a worksheet range into a VBA array.  Today’s post looks at the opposite operation; writing an array to a worksheet range.  With a UDF it couldn’t be simpler: Function MyFunction() as … Continue reading

Posted in Arrays, Excel, UDFs | 1 Comment

Ranges and Arrays

Transferring data from a worksheet into a VBA routine, or the other way round, is one of the most frequent tasks carried out in VBA programming.  Fortunately there is a simple way to do it: In a subroutine: Name the … Continue reading

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