+ Reply to Thread
Results 1 to 3 of 3

when use vba to open file, How to notify the user when the excel are opened by other

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    hk
    MS-Off Ver
    Excel 365
    Posts
    105

    Smile when use vba to open file, How to notify the user when the excel are opened by other

    Hi all,

    I use the vba to open excel file. like workbooks.open filename:=abc.xlsm
    but I found that if the file is opened by other. Excel still open the file but it will not notify user that it is opened as read only.

    Would you add more line to notify user if the file is opened by other?

    Many thanks.

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,821

    Re: when use vba to open file, How to notify the user when the excel are opened by other

    This macro will notify you whether or not the workbook is open.
    Please Login or Register  to view this content.
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Forum Contributor pareshj's Avatar
    Join Date
    05-20-2014
    Location
    MUMBAI
    MS-Off Ver
    2007 & 2010
    Posts
    447

    Re: when use vba to open file, How to notify the user when the excel are opened by other

    Hi,

    Check the below code and hope it will help you :


    Please Login or Register  to view this content.


    Regards,
    Paresh J
    Click on "* Add Reputation" as a way to say thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. can't open a new excel file while userform is opened
    By ncaravela in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-16-2013, 02:38 PM
  2. Notify user that a file is locked upon running insert/update query
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-21-2012, 04:59 PM
  3. [SOLVED] Can Excel open a new application for every file opened?
    By shoon in forum Excel General
    Replies: 1
    Last Post: 12-13-2005, 12:45 PM
  4. [SOLVED] Notify when file is open?
    By Rbp9ad in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-15-2005, 01:10 PM
  5. Replies: 2
    Last Post: 08-28-2005, 12:05 PM

Tags for this Thread

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