J
Joy
In our macros, we will write our data to csv file.:
FileOpen Name:=GetTempDir & "\Import.csv", FormatID:="MSProject.CSV",
Merge:=2, map:="****- Import Map"
sometimes, during the running of macros, the file is opened itself. (i could
not figure out the reason now), and this cause a VBA error:
Method 'FileOpen' of Object '_MSProject' failed
this is not convenient for users.
is there any way to detect that it is open before write data into he file,
and close it for user?
or is there another way to hide it from the user? cos sometimes, if the
error msg is thrown out, users will get confused….
thanks
FileOpen Name:=GetTempDir & "\Import.csv", FormatID:="MSProject.CSV",
Merge:=2, map:="****- Import Map"
sometimes, during the running of macros, the file is opened itself. (i could
not figure out the reason now), and this cause a VBA error:
Method 'FileOpen' of Object '_MSProject' failed
this is not convenient for users.
is there any way to detect that it is open before write data into he file,
and close it for user?
or is there another way to hide it from the user? cos sometimes, if the
error msg is thrown out, users will get confused….
thanks