Hello Marieme,
According to your sample Workbook your Code should actually read:
Otherwise you could refer to the Actual Sheet as follow;![]()
Private Sub CommandButton1_Click() ThisWorkbook.Sheets("Sheet4").Select End Sub
Hope that helps.![]()
Private Sub CommandButton1_Click() ThisWorkbook.Sheet1.Select ' which is named Sheet4 End Sub
Bookmarks