Re: To make 'Save' Button to actually save the worksheet using VBA
Hello Statsboi,
Your VBA project is password locked as such I cannot see your code. However, I wrote some code that will probably do what you want, don't know if it is the best way to do this, someone else might have a good idea?
Here goes:
Sub SaveButton()
Dim SaveWkb
Dim Flt As String
Dim FlterInd As Integer
Dim Title As String
On Error GoTo Handleerror
Flt = "Excel files (*.xls),*.xls,"
FlterInd = 1
Title = "Select a location to save"
SaveWkb = Application.GetSaveAsFilename _
(FileFilter:=Flt, _
FilterIndex:=FlterInd, _
Title:=Title)
If SaveWkb = False Then
MsgBox "No file was saved."
Exit Sub
End If
ActiveWorkbook.SaveAs Filename:=SaveWkb
Handleerror:
End Sub
Display More
Robert