Consulting

Results 1 to 3 of 3

Thread: Monitoring Remote Workbook for Changes

  1. #1
    VBAX Newbie
    Joined
    Aug 2017
    Posts
    2
    Location

    Monitoring Remote Workbook for Changes

    Hi. I am developing a VBA application which will utilize a USB card swipe for employee sign-ins in a remote computer. I have the card swipe working and saving the employee's card # into a worksheet in a workbook on our network. My main program is running on another computer and I would like to monitor the remote Excel file for changes every time a card has swiped.

    My only thought was to open the remote workbook and create a public withEvents variable so that I can use Worksheet_Change, however this will not work as the remote workbook has to be opened read only and once it's open it obviously only shows the content at the time it was opened.

    I would really appreciate any suggestions as to how this can be done.

    Thank you!

  2. #2
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    Why not have the remote workbook append the changed information to a csv file which you can read to obtain latest changes. It could also be saved with a timestamp if preferred.
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

  3. #3
    VBAX Newbie
    Joined
    Aug 2017
    Posts
    2
    Location
    Thank youmdmackillop. That was a good idea. I did that and it's working out perfectly using application.onTime to check for new changes since the previous time. Thanks again.

Posting Permissions

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