Results 1 to 2 of 2

Thread: Shared Workbook Users

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    9

    Shared Workbook Users

    I am trying to create a log for macro use. The macro will be used in a shared workbook environment. I was wondering if it would be possible to record what user ran the macro.

  2. #2
    Head Hunted anhn's Avatar
    Join Date
    Aug 2007
    Location
    Australia
    Posts
    3,669

    Re: Shared Workbook Users

    Within the macro, open a log text file for appending then append a line with UserName (and ComputerName) and the current time Now() then Close it straight away.

    You may need to check the log file if is accessible or not before open it as it may happen 2 or more users try to open the log file at the same time.

    If the log file is busy then need to wait until other user close it before open it for appending.

    Other solution is to create an Access-97 mdb file with a log table then within the macro use DAO to Add a new record with required information. The user does not need to have MS-Access to do that.

Posting Permissions

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



Click Here to Expand Forum to Full Width