+ Reply to Thread
Results 1 to 6 of 6

File already in use by another user

Hybrid View

  1. #1
    Tom Ogilvy
    Guest

    Re: File already in use by another user

    I didn't suggest using an error handler. I suggested checking if the file
    already exists and not attempting to overwrite it. Using displayalerts =
    false should just overwrite the file without prompt which is not what you
    said you want.

    You ask "Why" Indeed the answer is that you must code the behavior you
    desire when it differs from the default. In fact, what I suggested does
    not answer no, but moved immediately to the desired consequence. If you
    wish to ask a question for which the answer is already known, then perhaps
    you **will** need an error handler as well.

    --
    Regards,
    Tom Ogilvy

    "MichaelS_" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Thanks for your answer. I am already using the DisplayAlerts =
    > False/True. Why do I need an error handler (sorry about this question)?
    > The only thing I want is to say "No" as soon as the message "A file
    > named 'XY.xls' already exists in this location. Do you want to replace
    > it?" appears.
    >
    > Maybe I am doing it the wrong way.
    > Michael
    >
    >
    > --
    > MichaelS_
    > ------------------------------------------------------------------------
    > MichaelS_'s Profile:

    http://www.excelforum.com/member.php...o&userid=26406
    > View this thread: http://www.excelforum.com/showthread...hreadid=396807
    >




  2. #2
    Registered User
    Join Date
    08-11-2005
    Location
    Netherlands Waddinxveen
    Posts
    81
    In other words you need to error handle to react to an already open file, what you prefer to do is up to you. If you don't handle the error the file won't be saved.
    And Tom nor I assumed that was what you want.
    And take into account that there can be other errors while saving your file. Like a down network, not enough space on the media and others.
    Last edited by Dnereb; 08-18-2005 at 01:17 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1