Results 1 to 3 of 3
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    ile is alreday opened from.... (2000 r s1)

    assuming i have this dir on my server: myservermyserverdir

    and into this dir myserverdir are present many file myfile1.xls, myfile2.xls... ecc....

    The dir on server have free permition for all users.

    is possible to show a msg box to the user if open myfile1.xls and this file is alreday opened from other user...



    eaxmple: i open the myfile1.xls and this is already opened from other user show msgbox: "attention this file is alreday opened from "name of user have opened", close wbook without save...naturally.

    Tks

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: ile is alreday opened from.... (2000 r s1)

    Excel does this automatically. When you try to open a workbook that has already been opened by another user, Excel displays a dialog box that tells you the name of the user, with three options:
    - Open the workbook read-only
    - Warn you when the other user has finished.
    - Cancel opening the workbook.

  3. #3
    WS Lounge VIP sdckapr's Avatar
    Join Date
    Jul 2002
    Location
    Pittsburgh, Pennsylvania, USA
    Posts
    11,225
    Thanks
    14
    Thanked 342 Times in 335 Posts

    Re: ile is alreday opened from.... (2000 r s1)

    If you want to trap it in code before the file is actually opened, you could try this API Method

    Steve

Posting Permissions

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