quote:Originally posted by Shasur
I need to install a Excel Spreadsheet in the machines startup parh 'XLstart'
Is there any way I can get the user name in the setup.lst, so that the file gets copied to
c:\Documents and Settings\[user name]\Application Data\Microsoft\Excel\XLSTART
You should be able to use the UserName property of the Application object to return or set the name of the current user.
This example displays the name of the current user.
MsgBox "Current user is " & Application.UserName