ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to read Excel Spread Sheet in VB (https://www.excelbanter.com/excel-programming/279739-how-read-excel-spread-sheet-vbulletin.html)

Shabnam Gupta

How to read Excel Spread Sheet in VB
 
Hello Everyone,
I am working on a project where I have to read an excel
spreadsheet with about 60 cells and rows of data that I
don't need. I want to write out a comma delimited file
with just the information I need. Is there a way to
create a excel object, open the spread sheet and then
read each row and column and strip out just what I need
to a flat file.

Any help is really appreciated.


Thanks
Shabnam

Tom Ogilvy

How to read Excel Spread Sheet in VB
 
Here is a start:

http://support.microsoft.com/support...eio/fileio.asp
File Access with Visual Basic® for Applications

The key will be able if you can identify what it is you need and what you
don't.

--
Regards,
Tom Ogilvy


"Shabnam Gupta" wrote in message
...
Hello Everyone,
I am working on a project where I have to read an excel
spreadsheet with about 60 cells and rows of data that I
don't need. I want to write out a comma delimited file
with just the information I need. Is there a way to
create a excel object, open the spread sheet and then
read each row and column and strip out just what I need
to a flat file.

Any help is really appreciated.


Thanks
Shabnam




Shabnam Gupta

How to read Excel Spread Sheet in VB
 


The reply you sent me just works with flat files. I thought to read an
excel workbook you need to create excel.application object and
excel.sheet object. How would you read the cells and rows from these
objects. Thanks for your help.

Shabnam

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Tom Ogilvy

How to read Excel Spread Sheet in VB
 
I assumed you were working in Excel, but if not:

http://support.microsoft.com/?id=167223
Microsoft Office 97 Automation Help File Available on MSL


http://support.microsoft.com/support...aqVBOffice.asp
Frequently Asked Questions about Microsoft Office Automation Using Visual
Basic


http://support.microsoft.com/support...fdevinapps.asp
Programming Office from Within Office

http://support.microsoft.com/support...dev/iisfaq.asp
Integrating Office with IIS FAQ

http://support.microsoft.com/?id =219151
Q219151 - HOWTO: Automate Excel 97 and Excel 2000 from Visual Basic

http://support.microsoft.com/support...automation.asp
Using Automation with Microsoft Excel 97

http://support.microsoft.com/?id=153748
ACC: How to Call Excel Functions from Within Microsoft Access

--
Regards,
Tom Ogilvy

"Shabnam Gupta" wrote in message
...


The reply you sent me just works with flat files. I thought to read an
excel workbook you need to create excel.application object and
excel.sheet object. How would you read the cells and rows from these
objects. Thanks for your help.

Shabnam

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!





All times are GMT +1. The time now is 11:28 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com