Brian,
Right-click on any worksheet tab abd click on View Code. This will take you
to the VB editor. On the left hand side (project explorer) click on the bold
node reading VBAProject(YourWorkbookName) to select it and go to menu Insert
Module. You will see a new node Module1 under your VBA project, and the
cursor will now be in the VB editor window (top right hand side). Paste the
following code in there:
Sub Save_As_FileName()
Usr = Range("A1").Value
Dte = Range("A2").Value
Pth = "K:\MyFolder\MySubFolder\"
ActiveWorkbook.SaveAs Filename:= Pth & Usr & Dte & ".xls", _
FileFormat:=xlNormal, Password:="", WriteResPassword:="",
ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub
Change the cell references in the code to the real ones, and the path
likewise. Also, if you want you can change the date line to:
Dte = Format(Range("A2").Value,"ddmmyy")
(or whatever format you want) to predetermine the date part format,
regardless of users' Windows settings (recommended).
Save and close the VB window. So far you have created the macro that does
the job. Now all that's left to do is to create the button and assign it
that macro.
HTH,
Nikos