Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Embedding Images in Excel Workbook

Hello,

I am dynamically creating excel workbooks by generating a htm file
inside of a VB app, then opening the htm file in excel, and then saving
the workbook in standard excel format (xls). The only problem I have
is that my images are saved as "Linked" instead of "Embedded" images.

Example HTM:
....
<td
<img src="file:///\\myserver\share\image.jpg"
</td
....

Since the image is linked, if the image file on the server where to be
moved or deleted, all of the workbooks that reference that image would
just contain a place holder.

Is there a way to go through all of the shape objects (images) in excel
and switch it from being a linked to embedded image so that it gets
saved inside of the xls file??

Thanks

Dan

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Embedding Images in Excel Workbook

Hi Dan,

try " =EMBED("Worksheet","") "ActiveSheet.OLEObjects.Add(Filename:= _
"YourFIleName" , Link:=False, DisplayAsIcon:=False).Select


Lee Hunter

" wrote:

Hello,

I am dynamically creating excel workbooks by generating a htm file
inside of a VB app, then opening the htm file in excel, and then saving
the workbook in standard excel format (xls). The only problem I have
is that my images are saved as "Linked" instead of "Embedded" images.

Example HTM:
....
<td
<img src="file:///\\myserver\share\image.jpg"
</td
....

Since the image is linked, if the image file on the server where to be
moved or deleted, all of the workbooks that reference that image would
just contain a place holder.

Is there a way to go through all of the shape objects (images) in excel
and switch it from being a linked to embedded image so that it gets
saved inside of the xls file??

Thanks

Dan


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
publishing images with Excel workbook Hostohio New Users to Excel 0 January 12th 10 10:33 PM
Excel 2007 workbook with Images and Text Boxes [email protected] Excel Discussion (Misc queries) 0 April 9th 09 05:20 PM
Pros and Cons of embedding Excel Workbook object in PPT Presentati Barb Reinhardt Excel Discussion (Misc queries) 0 May 29th 07 03:04 PM
Embedding Images and/or Word Processor/Text Files in Excel Vince Excel Discussion (Misc queries) 2 June 1st 05 09:46 PM
Embedding VBA in New Workbook Patrick Excel Programming 3 January 21st 05 07:09 PM


All times are GMT +1. The time now is 08:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"