Hello folks:
I am looking to add to the code below.
I needed to move all files with extension .xls and .csv to MyPath &"\Uploads". I figure out how to delete files, but I can't seem to get it to move the files.
I am looking to add to the code below.
Code:
Private Sub Exitbtn_Click()
Dim MyPath$, MyName$
'Save the file to this path and type file name
MyPath = ThisWorkbook.Path & "\"
MyName = "Salary.Survey.Dashboards" & ".xlsm"
ActiveWorkbook.SaveAs MyPath & MyName
Kill MyPath & "\2011.1004.Salary Survey Template.xlsm"
MsgBox "File is Saved Under " & MyPath
Unload Me
End Sub
I needed to move all files with extension .xls and .csv to MyPath &"\Uploads". I figure out how to delete files, but I can't seem to get it to move the files.