Quote:
quote:Originally posted by Shasur
Hi All
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
Thanks,
Shasur
|
You should be able to use the UserName property of the Application object to return or set the name of the current user.
Example
This example displays the name of the current user.
MsgBox "Current user is " & Application.UserName
Rick