RE: Locking a worksheet during the reading of it

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Hi Jason,

From your description, it seems that you will have a VSTO 2005 enabled
Excel Workbook which will be updated by an external program.

Based on my experience, I did not recommend you do that because Excel works
as a desktop application which did not works smoothly in the multiple user
environment, the external program will be another user.
For your scenario, I would like to recommend you use the Excel RTD feature
which will update the data but not an external program.

289150 HOW TO: Set Up and Use the RTD Function in Excel 2002
http://support.microsoft.com/default.aspx?scid=kb;EN-US;289150

How To Create a RealTimeData Server for Excel
http://support.microsoft.com/default.aspx?scid=kb;EN-US;285339

327215 Create a RealTimeData Server for Excel 2002 or later versions with
Visual C++
http://support.microsoft.com/default.aspx?scid=kb;EN-US;327215

Building a Real-Time Data Server in Excel 2002 (Microsoft Excel 2002
Technical Articles)
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnexcl2k2/h
tml/odc_xlrtdbuild.asp


Best regards,

Peter Huang

Microsoft Online Community Support
==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • Re: general macro question
    ... How is your external program launching excel? ... you'll have to load the addin ... when the external program launches excel it still doesnt show up. ... the macro menu option - I dont see any macro? ...
    (microsoft.public.excel.misc)
  • Updating worksheet without opening
    ... I have a bar coding program which refers to an Excel workbook as an ODBC ... the worksheet are not updated when the bar coding program accesses the ... Am I correct in thinking the external program is not actually ... (another reason I'm using an Excel sheet as my database) ...
    (microsoft.public.excel.misc)
  • Re: Can Excel 2007 get external data from an SDF file?
    ... OK, I can see that you can poke data into excel from an external program (or is this a macro), but is it possible to connect directly using an OLE DB connection string? ...
    (microsoft.public.sqlserver.ce)
  • Re: How to start some file as Perl script argument?
    ... I want start perl script with XLS document as argument. ... I want star it with click on Excel document, How to do it in Windows OS? ... then you should have asked how to run an external program. ...
    (comp.lang.perl.misc)
  • Re: Need a Formula
    ... Kind regards, ... Microsoft MVP - Excel ... | difficult, and I wouldn't recommend against it, as long as you code ...
    (microsoft.public.excel.worksheet.functions)