Google Answers Logo
View Question
 
Q: MS Excel and dynamic images ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: MS Excel and dynamic images
Category: Computers > Graphics
Asked by: juma-ga
List Price: $10.00
Posted: 03 Jun 2002 13:51 PDT
Expires: 10 Jun 2002 13:51 PDT
Question ID: 20426
I would like to insert a dynamic image from the web into an Excel
spreadsheet - that is, when that image is updated on the web, it
should be updated in the spreadsheet, on the next open.  It seems
Excel copies the image from a specified web location into the
spreadsheet rather than pulling it down dynamically.  Is it possible
to do this?  How?
Answer  
Subject: Re: MS Excel and dynamic images
Answered By: skermit-ga on 03 Jun 2002 14:49 PDT
Rated:5 out of 5 stars
 
I've done it. For this to work you have to have Web Scripting
installed. This will allow you to edit the HTML that defines the cell
data, instead of filling in the cell data and having the HTML created
for you. Once you have followed the steps to install Web Scripting if
it's not installed (it might ask you for your original MS Excel CD to
install it, it did for me), just hit ALT-SHIFT-F11 or go to
Tools-->Macro-->Microsoft Script Editor and it will bring up the HTML
code for your sheet. If the code looks confusing don't worry, the next
part is VERY easy. Go to the top of the HTML file and start scanning
down for a <TD></TD>. The first line I found in a new document looked
like this:


"<td height=17 width=64 style='height:12.75pt;width:48pt'></td>"

then, inbetween the <TD> and </TD> insert "<IMG
SRC="http://www.blahblah.com/blah.gif>" making the new line look
something like this:

"<td height=17 width=64 style='height:12.75pt;width:48pt'><IMG
SRC="http://nyctmc.org/images/cams/govt_property/cctv14.jpg"</td>"

doing this I was able to make the image appear in the upper-left most
position of the spreadsheet, and from there you can move it anywhere
you want by dragging it. This image will refresh EVERY time you open
the file with about a 5-10 second delay depending on how fast your
connection is to the internet, etc.


Thank you for the opportunity to answer your question, if you require
more information, please clarify the question, or if you find this
answer satisfactory, please feel free to rate it. Thank you!

skermit-ga

Clarification of Answer by skermit-ga on 03 Jun 2002 14:50 PDT
BTW, by using the url in the example you'll get a live webcam of
people walking on the Brooklyn Bridge in your Excel file! Heh!
juma-ga rated this answer:5 out of 5 stars
thanks for the detailed answer - it worked perfectly.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy