Setting sheet format in SW2011

I use an Excel worksheet to batch create drawings including setting a custom sheet format (using SetupSheet5). This worked great in SW2010, but in SW2011 I am seeing seeing some strange behaviour. When the drawing is created, the paper size is wrong and the sheet format is not visible. If I then open the properties dialog for the sheet and click Ok without doing anything else the sheet size is corrected and the sheet format is loaded.

any suggestions for solving this?

SolidworksApi macros