Perhaps it is a missing quotation mark. You had this

imText = Format("345.4545, "#,##0.00")

and perhapsh you should have had this

imText = Format("345.4545", "#,##0.00")

which works fine for me.