Microsoft .xls files are a proprietary file format, which means you need one of these options:
Write the program as a VBA macro within excel itself.
Pay Microsoft some money to get the appropriate SDK which would allow you to access .xls files in a meaningful manner.
Spend months / years reverse engineering the .xls file format, only for Microsoft to change it in some way with the next version of excel.
Grab the source code for open office. OpenOffice does a pretty good job of importing and exporting .xls files, so finding out how it does it may be worth while. This too would require a long period of research.
Or perhaps take an easier approach and get excel to save the file as a .csv file, which you then process to yield another .csv file for import back into excel. CSV files are just text files, which are very easy to process from a C program.
I believe the really new versions of excel also use XML as a text format for saving files, with the advantage that all the formatting information is also preserved as well. It too is easy to parse from a C program.
For Each ctrl As Control In Me.Controls("pnlMainPanel").Controls
If ctrl.GetType Is GetType(System.Windows.Forms.Panel) Then
For Each subCtrl As Control In ctrl.Controls
If subCtrl.GetType Is GetType(System.Windows.Forms.TextBox) Then
If subCtrl.GetType Is ...