It works now but it might be leaky.
YAY, Got the bloody memory leaks sorted, down from several hundred leaking blocks to no leaking blocks (but that's only when you create a new file, add a sheet, delete that sheet and then close, there may be more work to do...)