LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Range vs IRange What's the difference?

Hi

I found a C# example of an Excel add-in at
http://www.codeproject.com/dotnet/excelnetauto.asp. I made some changes to
this project and made a function that takes an Excel.Range as a parameter.

Intellisense showed that there is an interface called IRange as well as
Range. What's the difference? When would you want to use an IRange?

TIA,
Fredrik


Here's my added C# function.


public int GetRangeSize1(Excel.Range range)
{

return range.Columns.Count * range.Rows.Count;

}


 
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
sum the difference in a range carla Excel Worksheet Functions 2 November 21st 07 05:57 PM
Date Range & Difference pm_arrow Excel Worksheet Functions 2 October 29th 07 02:51 PM
Count difference based on Range Richhall Excel Worksheet Functions 2 September 5th 07 12:06 PM
Labelling a row so it can be used as an offset for sum, difference or range Martin Underwood Excel Discussion (Misc queries) 5 March 18th 05 04:37 PM
Difference between range.formula and range.formulalocal Andy Excel Programming 3 May 1st 04 07:26 PM


All times are GMT +1. The time now is 05:40 PM.

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"