borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (load form from button)Next Topic (Monitor MDIChildren) New Topic New Poll Post Reply
AndreaVB Forum : VB.Net : End of WorkSheet
Poster Message
Tank
Level: Scholar

Registered: 30-09-2004
Posts: 41

icon End of WorkSheet

Hi All

I have a multi worksheet, spreadsheet/workbook (excel).

The application will not know how many worksheets nor how many rows in each worksheet each time it reviews it.

I need to check each row in column 'E' to see if the flag is True or False. If it is true I will need to get information from certain cells from that row, then continue checking the next rows 'E' coluumn.

I need help setting the loop for the 'E' column to start at row 6 and go to the end of the worksheet. Can anyone help; it will be much appreciated.

EXL.Workbooks.Open(sSpreadSheetFileName)
For i = 2 To EXL.Worksheets.Count
            WSheet = EXL.Worksheets.Item(i)
            'need a loop to the end of the worksheet
Next i

Thanks in advance
Tank

06-02-2007 at 01:18 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : VB.Net : End of WorkSheet
Previous Topic (load form from button)Next Topic (Monitor MDIChildren) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder