+ Reply to Thread
Results 1 to 2 of 2

Problem detecting Excel 2003 file change.

  1. #1
    Registered User
    Join Date
    04-10-2008
    Posts
    1

    Problem detecting Excel 2003 file change.

    Hi,

    I am working on an WinForm application that needs to detect if an Excel file was changed. I am using the Class FileSystemWatcher to monitor if the file changed. The problem I am running into is that when a user opens an Excel file using Excel 2003 and just closes the file without changing anything the FileSystemWatcher detects a change. When I check the properties of the file I do see that the Modified date has changed which explain why FileSystemWatcher detects a change. I only want to detect a change when the use actually changes the contect of the file. Can anyone recommed the best way for detecting a file change in Excel 2003 file?

    Note: When using Excel 2007 I do not have the same problem.

    Thanks,

    Bashar

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning bashara

    I don't think that you may be able to actually detect whether or not a file has changed because of the way Excel works.

    Try this. Find a small spreadsheet in sombodys post - if a thread has a poat uploaded it will be parked by a little paperclip, so they're fairly easy to pick out - a small file will be easiest. Save it to your local machine. Then open it once with Excel, then close it but don't save it. Then open the file again, this time using Notepad. You will see embedded in the file is the name that your version of Excel is registered to, so although you haven't asked for the file to be saved, it has actually been modified.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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