Consulting

Results 1 to 6 of 6

Thread: Solved: Help Required - Audit Trials using VBA

  1. #1

    Question Solved: Help Required - Audit Trials using VBA

    Hi,

    I am new to VBA and have been asked to make an "Audit Trial" in excel using VBA. The basic idea is -

    I have 2 excel sheets (A.xls & B.xls). Whenever, someone opens A.xls, the user's name and time should get saved in B.xls.

    Excel A.xls is also a shared workbook.

    Could anyone please help me out with this.

    Thanks in advance.

    Regards,
    Ankit

  2. #2
    VBAX Tutor mohanvijay's Avatar
    Joined
    Aug 2010
    Location
    MADURAI
    Posts
    268
    Location
    User Name means the computer name?

  3. #3
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,954
    Location
    Is B.xls always open prior to opening A.xls?

  4. #4
    No, B.xls is not open prior to opening A.xls - so basically, the VBA code needs to open B.xls

  5. #5
    VBAX Guru Kenneth Hobs's Avatar
    Joined
    Nov 2005
    Location
    Tecumseh, OK
    Posts
    4,954
    Location
    I would make B.xls update on open from an external file and empty that file after it's data is read into B.xls.

    Here is an ADO method to write to an external file. http://vbaexpress.com/forum/showthread.php?t=22620

  6. #6
    thanks Kenneth..!!

Posting Permissions

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