Link to PDF file using VBA?

R

Roy Lasris

It is possible to link Word to an Excel spreadsheet via VBA command similar to
this:

Selection.InlineShapes.AddOLEObject ClassType:="Excel.Sheet", filename:= _
"C:\excel\datasheet.xls", linktofile:=True, DisplayAsIcon:=False

Is a similar (or dissimilar, but functional) link to a .pdf file possible? I
just want the 'image' of the file, not ability to edit, etc..

Thanks.

Roy
 
R

Ranjan

Can we embed .zip & .pdf files via .Net in Excel sheets? We are using
following for embeding other MS Office files,

Excel.Shape shp = (Excel.Shape)oSheet.Shapes.AddOLEObject(Type.Missing
,@"D:\Customers.xls" ,true,true,"packager.exe",0,"test.xls",Type.Missing
,Type.Missing ,Type.Missing ,Type.Missing );

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top