Click here to Skip to main content
15,890,825 members
Home / Discussions / C#
   

C#

 
GeneralRe: Why no compiler warning in this code? Pin
Tom Clement21-May-12 11:58
professionalTom Clement21-May-12 11:58 
GeneralRe: Why no compiler warning in this code? Pin
Pete O'Hanlon21-May-12 22:15
mvePete O'Hanlon21-May-12 22:15 
AnswerRe: Why no compiler warning in this code? Pin
OriginalGriff21-May-12 21:09
mveOriginalGriff21-May-12 21:09 
AnswerRe: Why no compiler warning in this code? Pin
Bernhard Hiller21-May-12 23:25
Bernhard Hiller21-May-12 23:25 
AnswerRe: Why no compiler warning in this code? Pin
BobJanova21-May-12 23:55
BobJanova21-May-12 23:55 
GeneralRe: Why no compiler warning in this code? Pin
Tom Clement22-May-12 3:38
professionalTom Clement22-May-12 3:38 
GeneralRe: Why no compiler warning in this code? Pin
Sentenryu22-May-12 9:30
Sentenryu22-May-12 9:30 
Questionsearch on a particular sheet Excel workbook Pin
Maximmm21-May-12 5:30
Maximmm21-May-12 5:30 
Good Evening! I try to realize the search on a particular sheet Excel workbook.
I do late binding with a book as:
C#
using Excel = Microsoft.Office.Interop.Excel;

C#
private void button1_Click(object sender, EventArgs e)
        {
            excelapp = new Excel.Application();
            excelapp.Workbooks.Open(@"C:\4.xls", Type.Missing, Type.Missing, 
                Type.Missing, Type.Missing, Type.Missing, Type.Missing, 
                Type.Missing, Type.Missing, Type.Missing, Type.Missing, 
                Type.Missing, Type.Missing, Type.Missing, Type.Missing);            
        }

Next, I enter into textbox1, for example, the word TXTMessage, this means that the need to look at the sheet of TXT, and textbox2 - the search term in the third column (for example).

How to implement search?
Please, help me if you can.
AnswerRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 7:11
mvePIEBALDconsult21-May-12 7:11 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:23
Maximmm21-May-12 7:23 
GeneralRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 7:41
mvePIEBALDconsult21-May-12 7:41 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:45
Maximmm21-May-12 7:45 
GeneralRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 7:51
mvePIEBALDconsult21-May-12 7:51 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:55
Maximmm21-May-12 7:55 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:50
Maximmm21-May-12 7:50 
GeneralRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 7:52
mvePIEBALDconsult21-May-12 7:52 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 7:53
Maximmm21-May-12 7:53 
GeneralRe: search on a particular sheet Excel workbook Pin
PIEBALDconsult21-May-12 9:03
mvePIEBALDconsult21-May-12 9:03 
AnswerRe: search on a particular sheet Excel workbook Pin
Mycroft Holmes21-May-12 12:36
professionalMycroft Holmes21-May-12 12:36 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 12:39
Maximmm21-May-12 12:39 
GeneralRe: search on a particular sheet Excel workbook Pin
Mycroft Holmes21-May-12 13:02
professionalMycroft Holmes21-May-12 13:02 
GeneralRe: search on a particular sheet Excel workbook Pin
Maximmm21-May-12 13:05
Maximmm21-May-12 13:05 
QuestionEnregistrer le Son sous forme Numérique dés Le port paralléle du pc avec c # sur la base de données Pin
pogrebnyak21-May-12 3:27
pogrebnyak21-May-12 3:27 
AnswerRe: Enregistrer le Son sous forme Numérique dés Le port paralléle du pc avec c # sur la base de données Pin
Pete O'Hanlon21-May-12 4:18
mvePete O'Hanlon21-May-12 4:18 
GeneralRe: Enregistrer le Son sous forme Numérique dés Le port paralléle du pc avec c # sur la base de données Pin
pogrebnyak21-May-12 5:52
pogrebnyak21-May-12 5:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.