You can use the Workbook_BeofreSave to do this.. In the ThisWorkbook modules, put in this code:
Public bolManualSave As Boolean
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
If Not bolManualSave Then
Cancel = True
End If
End Sub
Private Sub Workbook_Open()
bolManualSave = False
End Sub
Then, modify your command button to set bolManualSave to true before you save, then reset it to false after you save:
Public Sub test()
bolManualSave = True
.
.
..
bolManualSave = False
End Sub