Have a look at http://www.xldynamic.com/source/xld.LastValue.html