Category Archives: VBA

Splitters!

A recent post on the Tek-Tips VBA forum reminded me that VBA has a split function, which will split a string into sub-strings at any specified character (such as a space).  D’oh I thought, why did I waste my time writing … Continue reading

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

Frame Analysis with Excel – 5; Large frames in Excel 2003

Continuing from: Frame Analysis with Excel – 4, 2D frame analysis Download Frame2.zip – the download file includes complete open source code. The solution presented in the previous post in this series made use of the Excel built in functions MINVERSE() and … Continue reading

Posted in Excel, Frame Analysis, Newton, VBA | Tagged , , , | 5 Comments

Importing tab delimited files and clearing large ranges

Wray Sisk commented on Importing text files with VBA – 3, asking if it could be modified to read tab delimited files. It could be, and has been; download here: Text-in2.ZIP It turned out to be a simple task; just … Continue reading

Posted in Excel, UDFs, VBA | Tagged , , , , , | 2 Comments

You can’t count on money

An interesting bug is reported at Daily Dose of Excel: Code snipit to test If you use a variable of data type currency as a counter in VBA you get some very strange behaviour.  The function below returns the result … Continue reading

Posted in Excel, VBA | Leave a comment

IP.xls updated

The spreadsheet IP.xls has been updated (previous post) with the addition of a function to find the minimum perpendicular distance from a point (or series of points) to a polyline: Pdist =PDist(Line,Points) Line is a range with at least two rows containing … Continue reading

Posted in Coordinate Geometry, Excel, Maths, Newton, UDFs, VBA | 1 Comment