I've got an excel sheet that I want to save to SharePoint via a macro. I have it sorted, but the problem is every month the file name is going to be different and I don't want to have to change the macro each time (i.e. filenameSeptember, filenameOctober, etc).
I'm using a very basic macro because I'm not super good at writing them, and it works but it's got the old filename hardcoded in:
Sub savetest()
ActiveWorkbook.SaveAs Filename:= _
"http://SharePointdirectory/filenameSeptember.xlsm" _
, FileFormat:=xlOpenXMLWorkbookMacroEnabled, CreateBackup:=False
End Sub
Context: each month I would be updating this file with new data and saving it with a new filename, sending it to a user to validate - i want this user to be able to upload directly to the SP directory via a macro that automatically uses the filename i've called the file.
I hope that makes sense, and thanks in advance.