Skip to content

Grab the First Worksheet appear in Excel instead of name? #37

Open
@imran1231

Description

@imran1231

Is it possible to grab the first worksheet in the excel file irrespective of its name?

This will select sheet by name.

var excel = new ExcelQueryFactory("excelFileName");
var oldCompanies = from c in repo.Worksheet(1) //Queries the second worksheet in alphabetical order
where c.LaunchDate < new DateTime(1900, 1, 1)
select c;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions