Use VB. NET to write a program for excel Control

Source: Internet
Author: User


Use VB. NET to write a program for excel Control
 
In the past, we always wrote some VBA programs in excel, which basically solved the problem by hundreds of lines of code. I have never used VC, VB, or Delphi to do this kind of thing. If I want to make reports, the relative scale and functions should be more, which should be the focus of excel Development.
 
This time I used VB. NET to develop a small program to access excel to read data and modify the data. Some Empirical things are shared with you. If there is any error, please correct me.
 
It can be roughly divided into the following parts:
1. preparation:
In the preparation section, we need to add the excel library reference to the project: I use office2003, and its library file is Microsoft excel 11.0 object library. If excel2000 is used, Microsoft excel 9.0 object library is used.
Add the Imports namespace as needed.
In this program, I only access the excel data and do not need a namespace.
 
2. Declare some objects:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.