Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Attach object (eg image) to worksheet


Hi all,

I have a basic question, is it possible to attach an object (e.g. a jpg
or gif image) to a worksheet in order have it included in the excel
file?

The underlying idea is to write a code that accesses an image stored
with the excel file (and not somewhere on a drive) and shows it e.g. on
a graph. Is that even possible? If yes, how?

thanx in advance for your answers

regards
thomas


--
usadream
------------------------------------------------------------------------
usadream's Profile: http://www.excelforum.com/member.php...o&userid=32703
View this thread: http://www.excelforum.com/showthread...hreadid=526724

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Attach object (eg image) to worksheet

insert=Pictrue=From file.

will store it on the worksheet (and in the xls file). You can copy it to a
graph either manually or with code or place it there originally. (do it
with the chart the active selection if doing it manually)

--
Regards,
Tom Ogilvy


"usadream" wrote:


Hi all,

I have a basic question, is it possible to attach an object (e.g. a jpg
or gif image) to a worksheet in order have it included in the excel
file?

The underlying idea is to write a code that accesses an image stored
with the excel file (and not somewhere on a drive) and shows it e.g. on
a graph. Is that even possible? If yes, how?

thanx in advance for your answers

regards
thomas


--
usadream
------------------------------------------------------------------------
usadream's Profile: http://www.excelforum.com/member.php...o&userid=32703
View this thread: http://www.excelforum.com/showthread...hreadid=526724


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Attach object (eg image) to worksheet

some generic code to copy it from the worksheet to an embedded chart:

ActiveSheet.Pictures(1).Copy
Activesheet.ChartObjects(1).chart.Paste


you can then move it around the chart.

--
Regards,
Tom Ogilvy


"usadream" wrote:


Hi all,

I have a basic question, is it possible to attach an object (e.g. a jpg
or gif image) to a worksheet in order have it included in the excel
file?

The underlying idea is to write a code that accesses an image stored
with the excel file (and not somewhere on a drive) and shows it e.g. on
a graph. Is that even possible? If yes, how?

thanx in advance for your answers

regards
thomas


--
usadream
------------------------------------------------------------------------
usadream's Profile: http://www.excelforum.com/member.php...o&userid=32703
View this thread: http://www.excelforum.com/showthread...hreadid=526724


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Attach object (eg image) to worksheet


Awesome, thanx a lot for your replies!!

regards
thomas


--
usadream
------------------------------------------------------------------------
usadream's Profile: http://www.excelforum.com/member.php...o&userid=32703
View this thread: http://www.excelforum.com/showthread...hreadid=526724

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
How can I attach a hyperlinked object in a workbook cell to email MMattyK New Users to Excel 0 December 1st 09 01:10 PM
Hyperlink to an image in other worksheet, displaying entire image. twilliams Excel Worksheet Functions 0 February 7th 06 10:02 PM
can we attach an image file to a excel cell ,like note pad comment PR New Users to Excel 1 January 20th 06 05:08 PM
Attach comment to object Neil Jimack Excel Worksheet Functions 1 May 12th 05 02:16 AM
Export the worksheet background image as an image file - possible? DataFreakFromUtah Excel Programming 2 April 10th 04 04:49 PM


All times are GMT +1. The time now is 08:29 AM.

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

About Us

"It's about Microsoft Excel"