I used
Private Sub CommandButton1_Click()
Workbook.SaveAs(Filename, FileFormat, Password, WriteResPassword, ReadOnlyRecommended, CreateBackup, AccessMode, ConflictResolution, AddToMru, TextCodePage, TextVisualLayout)
End Sub
but I'm not sure how to attach an event to a command button. any ideas?