+ Reply to Thread
Results 1 to 5 of 5

Track users who open excel file (new)

  1. #1
    Registered User
    Join Date
    01-14-2015
    Location
    Sri Lanka
    MS-Off Ver
    2010
    Posts
    8

    Track users who open excel file (new)

    Hi Everyone,

    I am new to this forum and looking for a code.

    I am looking for a log to track who opens a particular excel workbook. But I need this log on a seperate excel file. I know there was an old threda shich eas already answered but it didn't give a solution to have a seperate track log. As my question violate the rules of this formu, I'm posting as a new thread.

    Please see the link to the old thread - http://www.excelforum.com/excel-prog...xcel-file.html

    Would apprecaiated if any help could be provide.
    Thanks

  2. #2
    Forum Contributor
    Join Date
    07-01-2009
    Location
    Maine, USA
    MS-Off Ver
    Excel 2016
    Posts
    161

    Re: Track users who open excel file (new)

    Look at the code from maacmaac. I would suggest creating a CSV of your log. Taking those and the example from MS for the FreeFile function, you should end up with something that looks like this:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-14-2015
    Location
    Sri Lanka
    MS-Off Ver
    2010
    Posts
    8

    Re: Track users who open excel file (new)

    Hi Mainemojo,

    The workbook currently saved as .xlsx. What would be the difference if the workbook is saved as CSV?
    I've just tried with your code as it is but the just changed the file format to .XLXS and didn't get any results.
    Also, how do I see the name of the user whos has opened the workbook. If I open the log, will it give the name? I've opened the VBA ans clicked 'RUN' but it says "permission denied".

    Any help?

  4. #4
    Forum Contributor
    Join Date
    07-01-2009
    Location
    Maine, USA
    MS-Off Ver
    Excel 2016
    Posts
    161

    Re: Track users who open excel file (new)

    When I substitute drive/path/file info and use the following, it works just fine.

    Please Login or Register  to view this content.
    Based on your error, I'm assuming that you are using a path that you do not have full access to. That would also explain why the CSV is empty. When the user opens the Excel file that has the above code in it, they have to have full access to the file and path.

    You could have it send to an Excel format, but it would require additional coding to write to a file without opening it (you would use ADODB), find the end of the used range, and then put data into specific cells.

    It's very easy for Excel to open, edit, and save a CSV.

  5. #5
    Registered User
    Join Date
    01-14-2015
    Location
    Sri Lanka
    MS-Off Ver
    2010
    Posts
    8

    Re: Track users who open excel file (new)

    Hi mainemojo,

    The excel workbook has multiple sheets. It doesn't allow me to save this excel as '.CSV'.

+ 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. track users who open excel file
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-18-2023, 04:01 AM
  2. Macro to capture IP address of all users who open the file
    By bodhanwala in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-15-2012, 08:58 AM
  3. Replies: 4
    Last Post: 10-21-2012, 06:00 PM
  4. How to check which users have the file open?
    By adds007 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-18-2011, 01:55 PM
  5. Open a text file from the desktop (Multiple users)
    By WasWodge in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-17-2011, 08:04 PM
  6. Replies: 1
    Last Post: 01-24-2006, 12:10 PM
  7. [SOLVED] Possible for users to open file at the same time?
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2005, 01:05 PM
  8. [SOLVED] Multiple excel users can open the same file and edit at the same .
    By Jeff Howard in forum Excel General
    Replies: 1
    Last Post: 02-18-2005, 10:06 AM

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