R
Rich Wallace
Hi all,
I have a project written in VB.NET that ultimately traps a workbook upon the
save function and writes its contents out to an XML document.
Unfortunately, I don't have enough flexability to limit the data I want to
extract at this point so I wandered on over here to see if the Masters may
be able to help me.
What I would like to do, if at all possible or if other options are
available is the following:
When a user saves a workbook/active worksheet, is there a way I can locate
what cells were changed since the last save/open of the file? .NET provides
an event handler that would allow me to trap individual cell changes but
only if the XLS file is opened within my custom app, seems there are
challenges grabbing onto the Excel instance and attaching to an active
worksheet and applying the event handler outside of the sheet.
One option I thought of was to grab a copy of the file when the user opens
it, then grab another copy of it when they save it and then see if I can run
a cell by cell comparison against the two sheets but this could be complex.
So does anyobdy have any ideas on how I may be able to attack this in either
VBA or VB.NET? Any suggestions would be greatly appreciated.
Thanks,
-Rich
I have a project written in VB.NET that ultimately traps a workbook upon the
save function and writes its contents out to an XML document.
Unfortunately, I don't have enough flexability to limit the data I want to
extract at this point so I wandered on over here to see if the Masters may
be able to help me.
What I would like to do, if at all possible or if other options are
available is the following:
When a user saves a workbook/active worksheet, is there a way I can locate
what cells were changed since the last save/open of the file? .NET provides
an event handler that would allow me to trap individual cell changes but
only if the XLS file is opened within my custom app, seems there are
challenges grabbing onto the Excel instance and attaching to an active
worksheet and applying the event handler outside of the sheet.
One option I thought of was to grab a copy of the file when the user opens
it, then grab another copy of it when they save it and then see if I can run
a cell by cell comparison against the two sheets but this could be complex.
So does anyobdy have any ideas on how I may be able to attack this in either
VBA or VB.NET? Any suggestions would be greatly appreciated.
Thanks,
-Rich