

Worksheets(i).Activate makes i-th worksheet active (bring to foreground).Worksheets(i).Cells.Clear to wipe out all content in a worksheet.Worksheets(i).Cells.ClearComments to clear all comments in all cells in a worksheet.

Worksheets(i).=xlNone to clear background color in all cells in a worksheet.IsEmpty(cell) checks whether cell is empty.MsgBox(string) for displaying a short text in a message box.Cells(i,j).Interior.Color sets the background color of the cell.Cells(i,j).AddComment("my comment") adds a comment to the cell.Cells(i,j).Value is the content of the cell.

