V
Vacuum Sealed
Hi all
I need help with the following please.
Check if myFile is open/closed, if it is open flash up a MsgBox
displaying ( if possible ) the user's identification.
There are some users in the office that have memory-holes between their
ears and leave files open after they have accessed and finished with
them. This specific file is backed up to at the end of each day and
upsets the whole process ( if left open ), when others forget to close it.
Something like:
If Workbook.myFile is open then
Msg("This person has the file open", vbOkOnly)
Cancel = True
Else
' Do my other stuff
I would like to have this run the check first so the user can cancel the
rest of the code if it is in use by someone else. He/She then can ask
the current user to close the file and continue.
Thx heaps in advance
Mick
I need help with the following please.
Check if myFile is open/closed, if it is open flash up a MsgBox
displaying ( if possible ) the user's identification.
There are some users in the office that have memory-holes between their
ears and leave files open after they have accessed and finished with
them. This specific file is backed up to at the end of each day and
upsets the whole process ( if left open ), when others forget to close it.
Something like:
If Workbook.myFile is open then
Msg("This person has the file open", vbOkOnly)
Cancel = True
Else
' Do my other stuff
I would like to have this run the check first so the user can cancel the
rest of the code if it is in use by someone else. He/She then can ask
the current user to close the file and continue.
Thx heaps in advance
Mick