Hi
I am using VBA to copy a file to a directory. When the user does not have access to the directory, i want to display an msgbox ("Please contact your administrator!")
But how can i catch the access denied error message so that i can do an if statement to display that msgbox
FileSystemObject.CopyFile sourcefile, destinatationfile
IF access denied msg THEN
msgbox("PLEASE CONTACT YOUR ADMINISTRATOR)
END IF
I am using VBA to copy a file to a directory. When the user does not have access to the directory, i want to display an msgbox ("Please contact your administrator!")
But how can i catch the access denied error message so that i can do an if statement to display that msgbox
FileSystemObject.CopyFile sourcefile, destinatationfile
IF access denied msg THEN
msgbox("PLEASE CONTACT YOUR ADMINISTRATOR)
END IF