Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I create MS Excel in VB.NET?

Status
Not open for further replies.

jbailey268

Programmer
May 25, 2005
51
US
In earlier VB one used the following.

ox=createobject("ExcelApplication")
ox.activepage.name="Pivot"
ox.columns(1).width = 15 etc. etc

I was informed that in VB.net that Createobject as such is unsupported.
I am currently using the 2005 Visual Studio.

How would one open the excel and programatically do all the low level things that I use to do.
I use to cut the macro created code and use it in another program - it worked great.

Thanks for your help.
 
You can use the Visual Studio Tools for Office, which is downloadable from Microsoft.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
I use CreateObject. *shrug*

-I hate Microsoft!
-Forever and always forward.
 
Thanks for your suggestions.

I used Createobject and it didn't work once. Maybe I gave up too soon (syntax error?); listened to others who said MS doesn't reccommend Createobject or support it. I'll try it again.

And thanks for those sites.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top