ActiveSheet.OLEObjects.Add("Somefile.Txt", False, False)On Nov 14, 2:46 am, CJ <[EMAIL PROTECTED]> wrote: > If you're reading this, I thank you for your time and any help you can > offer. What I'm trying to do with this application is > programmatically insert a file into Excel. As everyone knows, to do > the process manually, you would open Excel and proceed as follows: > > (1) Click "Insert" on the menu strip. > (2) Click "Object" from the drop down menu. > (3) From the new form, click "Create From File" and browse for the > file to insert. > > I've looked through many group discussions in search of any articles > to do this through coding, but haven't found anything yet. Does > anyone have any reference regarding inserting a file into Excel? I > have already created references to Excel through the coding and can > insert image files no problem. I was currently working to insert > AutoCad files that were converted into *.jpeg files, but it seems they > prefer for the images to remain as *.dwg files. For the development > of the project, I'm using AutoCad LT 2007. As for my current coding, > I'm using VB.NET. I'm currently learning C#.NET, so if there are any > reference material using C#, I can translate the coding. > > - CJ
