Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. CreateObject("WScript.Shell").specialfolders("Desktop")
  2.  
  3. ActiveWorkbook.SaveAs Environ$("UserProfile") & "My Documents" & _
  4. Environ$("UserName") & " - " & Format(Date, "yyyy-mmm-dd") & ".xls"
  5.  
  6. ActiveWorkbook.SaveAs Filename:=Environ$("UserProfile") & "My Documents" & _
  7. Environ$("UserName") & " - " & Format(Date, "yyyy-mmm-dd") & ".xlsm", _
  8. FileFormat:=xlOpenXMLWorkbookMacroEnabled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement