Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default VSTO: Sheets collection a 1-based array(?!?!?)

Folks,

I have concluded, possibly erroneously that Sheets, as in:

(Excel.Worksheet)thisApplication.Workbooks[result_wbk].Sheets

is a 1-based array.

((Excel.Worksheet)thisApplication.Workbooks[result_wbk].Sheets[i]).Name

works when i=1; fails if i=0;

Have not been smoking anything. What false expectations do I have?

--
Bob Sullentrup
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
Formulas assignment from array to range in VSTO Excel doesn't work vsto excel array to range Excel Worksheet Functions 0 December 11th 07 04:48 PM
Writing to An Array or Collection vqthomf Excel Programming 4 August 23rd 05 02:07 PM
creating a collection of Sheets references Eric[_27_] Excel Programming 1 February 6th 05 01:20 PM
collection of sheets mark Excel Programming 6 February 2nd 05 11:38 PM
How to find the type of Sheet in Excel.Workbook.sheets collection Raj[_7_] Excel Programming 3 December 9th 03 10:48 PM


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

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

About Us

"It's about Microsoft Excel"