-
I am making a program that requires the common dialog save box, but I want the file chosen to be made local. Example.
the user chooses C:\hotdog\freekho.txt
the program turns it to "freekho.txt" by cutting out the location.. Please help. Wrack your brains! I must know... The fate of the world hangs in the balance...
-
Create a form that looks like the save dialog and then do whatever you want with it.
-
What do you use to get the filename?? When I use:
CommonDialog1.showopen 'or showsave
MsgBox CommonDialog1.filename
It returns the full path... Good luck
-
I"m not sure if I'm reading your question wrong but just find the last instance of "/" then take everything after it using Right or Mid.
-
CommonDialog1.ShowOpen
To find out the full name (path & filename) use:
MsgBox CommonDialog1.FileName
To find out only the file name (w/o path) use:
MsgBox CommonDialog1.FileTitle
To find out only the path use:
MsgBox Left(CommonDialog1.FileName, Len (CommonDialog1.FileName) - Len(CommonDialog1.FileTitle))
[Edited by vbDan on 07-01-2000 at 09:47 AM]