Displaying posts categorized under

Technology

Newton Utilities Stable Release v1.0

I’m proud to announce the stable release of Newton, my personal VBA codebase which I have been developing over the past month. Putting this up here is as much for sharing as it is safekeeping. Newton comes with handy functions for handling large arrays of data, as well as some useful file input-output stuff. It [...]

Newton Utilities – my toolkit for data-intensive VBA work

I have shared some code I was working on in the past previously. I have since modified it a bit further as I learned more about excel (both 2007 and 2003) and also about my financial data reporting needs. I’ve taken to calling it Newton Utilities as, like Newtonian physics, the functions included are not [...]

AppleCare as a Credit Default Swaption: A One-Period Binomial Model

The highest-end iPad is S$1,108 and AppleCare (for any iPad) can be purchased for S$118, or just over 10%. What AppleCare does is extend your phone support, by 1 year 275 days, 90 days from now, and your hardware support, by 1 year, 1 year from now. Rings a little like a good old Credit [...]

VBScript Quick Reference: Seamlessly Copying To And From The Clipboard

usggovi dataAn extremely common problem encountered in VBScripting is having to copy to and from the Clipboard. VBScript does not offer direct access so there are many workarounds suggested. Most of what I find on the net are half-solutions involving security warnings from everybody’s favorite browser. This is my stackoverflow.com solution to the problem. Code [...]

Excel VBA Quick Reference 3: VBA Virtual Pivot Table on Arrays

Also self explanatory? Private Sub swyxVBAPivotTable(inputarray(), rowlabelsBase1(), valuedataBase1(), outputarray()) Dim x, y, i, j, sb, WIA Dim prelimarray(), listofcols() x = UBound(rowlabelsBase1) y = UBound(valuedataBase1) ReDim prelimarray(1 To x + y, 1 To 1) ReDim listofcols(1 To 1) ‘just the first one, special treatment       sb = “”       For j = 1 To x [...]