Sallushan,
Again, thank you for your help with the sample code. The code didn't
work perfectly, but it pointed me in the right direction. I was
attempting to save the AutoCad drawing as an object and insert it into
the Excel file as an object. From your code, I was able to make my
corrections. I also saw a suggestion someone else made regarding
Excel macros. They suggested creating a macro and view the VB code
afterwards. Now I can finally move foward with this project...
- CJ
On Nov 14, 12:51 am, sallushan <[EMAIL PROTECTED]> wrote:
> 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- Hide quoted text -
>
> - Show quoted text -