Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to read a range in excel file
Message
 
To
14/01/2007 12:59:52
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
Miscellaneous
Thread ID:
01185447
Message ID:
01185450
Views:
12
I use this method:
    Public Shared Function GetXLRange(ByVal pSheet As Excel.Worksheet, ByVal pCell1 As String, ByVal pCell2 As String) As Excel.Range
        Try
            Dim rng As Excel.Range
            rng = CType(pSheet.Range(pCell1, pCell2), Excel.Range)
            Return rng

        Catch ex As Exception
            App.ErrorManager.ManageError(ex, False)
            Return Nothing
        End Try
    End Function
>I've been busting my brains on this one. I need to read a particual range in an excel file (ie. B7:G35). The excel file is formatted as a form similar to that of a PO form with a header details and footer. I seem to be having problem reading the details section if I pull the whole file. This is why I would like to pull just the details section.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Reply
Map
View

Click here to load this message in the networking platform