Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi All,
I'm setting up a macro that will be used by multiple users. One of the pieces consists of placing a copy of the form to the users desktop. My question is - how can I set up the desktop address to save to random users vs. the standard single user address? Right now the below is just referring just one person (MyName) and I need it to be generic and encompass whoever is using the application and not be specific. Thank you in advance - Jenny B. Sub DesktopSave() Dim mypath As String Dim nrng As Range Dim fname As String Set nrng = Range("H5") ActiveSheet.Copy mypath = "C:\Documents and Settings\MyName\Desktop" fname = nrng.Value & ".xls" ActiveWorkbook.SaveAs filename:= _ mypath & fname, FileFormat:= _ xlNormal, Password:="", _ WriteResPassword:="", _ ReadOnlyRecommended:=False, _ CreateBackup:=False ActiveWorkbook.Close Call TransfertoLog Call CLEAR End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
EXCEL FILES SAVED TO DESKTOP WILL NOT OPEN FROM DESKTOP | Excel Discussion (Misc queries) | |||
Another Save Question | Excel Worksheet Functions | |||
Macro - Save file in Desktop | Excel Worksheet Functions | |||
Save to default desktop | Excel Discussion (Misc queries) | |||
Save as not working for laptop to desktop | Excel Worksheet Functions |