excel 365 activate worksheet by name code example Example: excel vba how to activate a specific worksheet Worksheets("Sheet1").Activate