You cannot change the worksheet or other cells from a functrion invoked from within a worksheet.