A
Alex St-Pierre
Hello,
The Dir function doesn't work all the time
example:
If Dir("D:\temp\alex\") = "" Then
exit sub
endif
the macro doesn't stop because the repertory is valid
and then, I try:
If Dir("D:\temp\") = "" Then
exit sub
endif
and the macro stop ?
It's very strange, the drive used is a server drive but always available.
Finally, I tried:
path = "D:\temp\"
ChDrive path
ChDir path
If Dir(path) = "" Then
exit sub
endif
ChDrive and ChDir change but the macro stop ??
Any idea ?
Thanks,
The Dir function doesn't work all the time
example:
If Dir("D:\temp\alex\") = "" Then
exit sub
endif
the macro doesn't stop because the repertory is valid
and then, I try:
If Dir("D:\temp\") = "" Then
exit sub
endif
and the macro stop ?
It's very strange, the drive used is a server drive but always available.
Finally, I tried:
path = "D:\temp\"
ChDrive path
ChDir path
If Dir(path) = "" Then
exit sub
endif
ChDrive and ChDir change but the macro stop ??
Any idea ?
Thanks,