I don't use exel 2000. th ecode below gets all the users files in the
persons desktop using the environmental variables in windows.
Sub test()
Home = Environ("HomePath")
Desktop = Home & "\" & "Desktop"
FName = Dir(Desktop & "\" & "*.*")
Do While FName < ""
MsgBox ("Files : " & FName)
FName = Dir()
Loop
End Sub
"Jeff Ciaccio" wrote:
I have my user's putting in their name in cell B2, and I would like to set
the filename to B2 concat something. They will all be using Windows, so I
would like to set the directory to Desktop.
Can I automate this whenever the cell B2 changes? I'm using Excel 2000.
Thanks!!
--
Jeff Ciaccio
Chemistry and Physics Teacher
Sprayberry High School; Marietta, GA
Blog: http://sprayberry.typepad.com/ciaccio