command button help
Private Sub CommandButton2_Click()
'Closes another open workbook without saving
Workbooks("Test.xls").Close SaveChanges:=False
End Sub
Private Sub CommandButton3_Click()
'Closes the workbook containing the _
macro code without saving
ThisWorkbook.Close SaveChanges:=False
End Sub
--
Regards,
OssieMac
|