The annoying thing is that I know that the header object size can be calculated. But I haven't learnt python so I can't convert the code to VBA (I've tried).