J
Joy
I use the following codes to import data in csv file stored in the temp
directory to the project file.
FileOpen Name:=GetTempDir & "\CPLMExport.csv", FormatID:="MSProject.CSV",
Merge:=2, map:="ExportMap"
GetTempDir gets a temp directory
after that, if I use chDrive and chdir to change the current directory from
the temp directory to the directory where the file is stored, like
"C:\Documents and Settings\<user>\Desktop". Then I go to file->Save As, the
default directory is still the temp directory !!.
I also tried open the project file after the above codes using FileOpen, and
the default directory is till the temp directory.
it is strange....why chdir and chdrive does not work if open a file in temp
directory.
or is there any other way to import data in csv file??
thank you
directory to the project file.
FileOpen Name:=GetTempDir & "\CPLMExport.csv", FormatID:="MSProject.CSV",
Merge:=2, map:="ExportMap"
GetTempDir gets a temp directory
after that, if I use chDrive and chdir to change the current directory from
the temp directory to the directory where the file is stored, like
"C:\Documents and Settings\<user>\Desktop". Then I go to file->Save As, the
default directory is still the temp directory !!.
I also tried open the project file after the above codes using FileOpen, and
the default directory is till the temp directory.
it is strange....why chdir and chdrive does not work if open a file in temp
directory.
or is there any other way to import data in csv file??
thank you