Problem has been solved by changing
toPublic Sub ResizeUserForm(frm As Object, Optional dResizeFactor As Double = 0#)
This is quite irritating as I can see no reason why the double type should have thrown the error, or why the error should have occurred in only in such specific circumstances.Public Sub ResizeUserForm(frm As Object, Optional dResizeFactor As Variant = 0#)