Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default implicit activation


When using the .Net Excel namespace and its various classes to access t
extracrt information from spreadsheets, it is possible to share th
Excel.Application between threads, which might be accessing differen
worksheets from different workbooks loaded into the application. Thi
will fail disastrously if code like

Workbook workbook = app.Workbooks.Open(...);
or
Workbook workbook = app.Workbooks[2];
or
Worksheet worksheet = (Worksheet) workbook.Worksheets[1];
or
Range r2c1 = worksheet.get_Range("A1", "A1");
or
object r2c1Val =((Range) r2c1.get_Item(1,1)).get_Value(objMissing);
etc

changes the active cell or active sheet and this affects other thread
carrying out the same kinds of computations.

The question is, do the methods used above implicitly change the activ
cell or worksheet or anything else? If there are methods whic
implicitly change what is active, is there documentation somewher
which describes these side effects

--
jgreifPosted from http://www.pcreview.co.uk/ newsgroup acces

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
activation key LewisT Excel Discussion (Misc queries) 2 March 24th 10 05:27 AM
Possible to chart data for dates implicit within a range? Nechama Charts and Charting in Excel 1 September 1st 05 10:11 PM
Numeric content in one cell ( implicit formula ) and the result in another one PeDevillers Excel Discussion (Misc queries) 7 March 2nd 05 07:40 AM
program activation Lawson Excel Programming 2 October 30th 03 02:34 PM
Ctl-X activation of macros John Baker Excel Programming 1 October 17th 03 09:24 PM


All times are GMT +1. The time now is 09:29 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"