How to import csv file data to already open worksheet (in C#)

W

WesM

Hello,

I need to import data from a csv file into a worksheet on an already opened
workbook (programmatically using C#). I have been able to use the
....Workbooks.OpenText() method but it opens a new workbook. I can see that
using the menu options Data/import external data/import data does the trick
(and I've recorded the macro and can see what it's doing - in VBA of course).
I need to know how to perform this macro task in C#. Can anyone give me a
clue?

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top