Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 10th, 2006, 11:00 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default Package and Deployment - XLStart Up

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


__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
 
Old January 10th, 2006, 02:21 PM
Authorized User
 
Join Date: Mar 2004
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Package And Deployment wizard haipjk VB Components 4 July 11th, 2008 08:59 AM
Package Deployment Problem bveerendrakumar Pro VB 6 8 March 16th, 2005 05:05 AM
Package and Deployment rwalker VS.NET 2002/2003 2 February 27th, 2004 09:44 AM
DTS Package Deployment acdsky VB Databases Basics 1 February 22nd, 2004 12:25 PM
package & deployment prob Bill Crawley Pro VB 6 1 June 30th, 2003 08:51 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.