I have some code at the end of which it prompts the user to save the file. Right now the default location is 'My Documents' but I want to change it to 'Desktop'
Here's the current line of code:
We use XP Pro and work in a domain environment, so the Desktop is buried in the 'Documents and Settings' folder of the current user that is logged on the workstation. This is actually something that I've been wondering for a long time, how do you access the Desktop of the current user via VBA?
Thanks!
Matt
Here's the current line of code:
Code:
Application.Dialogs.Item(xlDialogSaveAs).Show arg1:="\desktop\sheetname", arg2:=xlCSV
We use XP Pro and work in a domain environment, so the Desktop is buried in the 'Documents and Settings' folder of the current user that is logged on the workstation. This is actually something that I've been wondering for a long time, how do you access the Desktop of the current user via VBA?
Thanks!
Matt