Author Archives: dougaj4

Commenting a block of code in VBA

One way is to manually place an apostrophe at the start of every line in the block. A much easier way (I just found out today) is: Go to View-Toolbars-Customise Select the Command tab Select the Edit Category on the … Continue reading

Posted in Excel, VBA | Tagged , , | 9 Comments

Python for VBA users – 1

Following my recent posts on some preliminary experimentation with linking Excel to Python, this will be the first of a more structured series, mainly as a reminder to myself of lessons learnt on the way, but also I hope of … Continue reading

Posted in Excel, Link to Python, UDFs, VBA | Tagged , , , , , | 2 Comments

Sorting with Python

A previous post provided a VBA Sort function that could be used as a User Defined Function (UDF) to provide a sorted list on the spreadsheet, or called from another VBA routine to sort an array. I have just written a … Continue reading

Posted in Arrays, Excel, Link to Python, UDFs | Tagged , , , , , | 5 Comments

Python matrix functions in Excel, using Pyxll

Following my previous Python post I have now successfully created a number of matrix arithmetic User Defined Functions (UDFs), using Python, SciPy and the PyXll add-in: The spreadsheet and associated Python modules may be downloaded from Matrixpyxll.zip See the previous post … Continue reading

Posted in Excel | 2 Comments

Martin Simpson and Danny Thompson (1/47 from Graham Bell’s Danny Thompson collection)

A variant of the traditional song Matty Groves, Little Musgrave tells the story of a young man paying the price for a brief tryst with a noble woman. This version recorded live at the Oxford Folk Festival of 2008 features … Continue reading

Posted in Bach | Tagged , , , , | 4 Comments