Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Help!!!!!! - Find Function not working from C#

I have been enjoying Excel programming but am now hitting a wall. I
simply want to transfer all data from the spreadsheet at runtime. The
spreadsheet is read ever 1 secs on a timer as it has real-time
streaming data inside of it.

I figured the first step was to dynamically figure out a range address
then simply get that range and assign the values to an arraylist.

How do I dynamically figure out a range to do this. The find function
is throwing a COM Interrupt message.

Here is my Find Call

int iMaxRows = excelWorksheet.Cells.Find("*", "A1",
Excel.XlFindLookIn.xlValues, Excel.XlLookAt.xlPart,
Excel.XlSearchOrder.xlByRows, Excel.XlSearchDirection.xlPrevious,
false, false, Type.Missing).Row;

It throws a type mismatch on the third to last argument which is
MatchCase an object.
Ive tried

1. Type.Missing
2. 0
3. Declare object var = false and use var

None of it works. Any Suggestions?????

Thank You in advance for reading and hopefully solving.

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
ISBLANK function not working when cell is blank dut to function re mcmilja Excel Discussion (Misc queries) 9 May 7th 23 03:43 AM
Find and Replace function not working wt.pm Excel Discussion (Misc queries) 2 April 14th 09 05:16 PM
My Find and Replace function in Excel is not working? BPeach Excel Worksheet Functions 2 December 20th 06 11:27 PM
Find Function not working on protected sheet Hippy Excel Worksheet Functions 1 December 14th 06 03:14 PM
VBA Excel/Access Find function (Ctrl+F) not working VBA_Beginner Excel Programming 0 February 13th 06 03:17 AM


All times are GMT +1. The time now is 06:51 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"