Use VB.Net to write to Save Excel File

M

michealmess

I have an excel application which is using vb.net to import data into
range names from a SQL database. My users could be using any version of
Excel so I am using late binding in vb.net with no reference to Excel.
I have tested a vb.net app which selects a excel file and imports data
to and it saves. But how can I do this from within Excel using vb.net

I have
Friend mobjExcel As Object = CreateObject("Excel.Application")

and the following lines does nothing.

mobjExcel.ActiveWorkbook.Save()
 

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