.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

interface with Excel

4 REPLIES 4
Reply
Message 1 of 5
gilseorin
409 Views, 4 Replies

interface with Excel

Hi, Everyone!
I need an example source about interfacing with Excel.
Some help? Thanks in advance.
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: gilseorin

Start with the "Excel Developer Portal" on MSDN:
http://msdn2.microsoft.com/en-us/office/aa905411.aspx

Dan

wrote in message news:5422388@discussion.autodesk.com...
Hi, Everyone!
I need an example source about interfacing with Excel.
Some help? Thanks in advance.
Message 3 of 5
ahmed.felix
in reply to: gilseorin

Here you go

' First thing, add a reference to excel object

Imports Microsoft.Office.Interop

Try
appExcel = GetObject(, "Excel.Application")

Catch ex As Exception
appExcel = New Excel.Application
xlWorkbook = appExcel.Workbooks.Add

End Try

After that everything works just like using VBA in Excel, which is another topic for another forum. The GetObject function will use an open Excel window if it finds one. Note: it will use the first one that was opened, which is the first one that appears in the processes window if you look.
Message 4 of 5
gilseorin
in reply to: gilseorin

Thank your for your hint.
Good Day!
Message 5 of 5
gilseorin
in reply to: gilseorin

Thank you for the information.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost