C#: How to access an Excel cell?

后端 未结 7 1119
忘掉有多难
忘掉有多难 2020-12-05 18:25

I am trying to open an Excel file and populate its cells with data? I have done the following coding so far.

Currently I am at this stage with the following code but

7条回答
  •  Happy的楠姐
    2020-12-05 19:10

    How I work to automate Office / Excel:

    1. Record a macro, this will generate a VBA template
    2. Edit the VBA template so it will match my needs
    3. Convert to VB.Net (A small step for men)
    4. Leave it in VB.Net, Much more easy as doing it using C#

提交回复
热议问题