Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Excel worksheet

Excel worksheet

Scheduled Pinned Locked Moved C#
question
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ankit Aneja
    wrote on last edited by
    #1

    Hi all I am having the code which was reading the .xls file like this(code below) but now in that .xls file,I have two sheets file1 and file2 now how can i go to particular sheet depending upon the input from the user Excel.Workbook theWorkbook = this.Excelobj.Workbooks.Open(DataClass2.exc_inputFileName, 0, false, 5, "", "", true, Excel.XlPlatform.xlWindows, "\t", false, false,0, true,false,false); Excel.Sheets sheets = theWorkbook.Worksheets; Excel.Worksheet excelWorksheet = (Excel.Worksheet)sheets.get_Item(1); Excel.Range tempRange = (Excel.Range) excelWorksheet.get_Range("A1","IV1");

    Ankit Aneja "Nothing is impossible. The word itself says - I M possible"

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups