wb would be a workbook object so can be a workbook, object or variant
if you are doing this inside xl2007 you may not require the [B]set [\b]*keyword, so try without
i had assumed originally you were working in vb6, as your post was in the vb6 forum