CreateObject

snowsride

Registered User.
Local time
Today, 02:29
Joined
Nov 29, 2001
Messages
33
I have trie instantiating Excel an Graph by using CreateObject but I'm clealry not using the corect syntax. Can someone send me the code - all of it including the Dim statements to open Excel, insert a column, and then release Excel. Hopefully I can then amend the code as necessary.

Thanks
 
This code will do the basics of what you want:


dim objExcel As Object

Set objExcel = CreateObject("Excel.Application")

Columns("C:C").Insert Shift:=xlToRight

objExcel.Quit
Set objExcel = Nothing


HTH
wink.gif
 

Users who are viewing this thread

Back
Top Bottom