This is not Visual Basic, but Excel-VBA. These are not the same. Please ask at the proper place..