To fix the Visual Basic error in excel, you need to follow some manual and automatic methods which include: Uninstalling Microsoft works. Create and import all the excel files into new excel template. Try force stop of excel application and launch it again. Delete the files that might affect the Excel worksheet