Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / July 2007

Tip: Looking for answers? Try searching our database.

Powerpoint 2007 VBA AddPicture web image problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BP - 23 Jul 2007 03:28 GMT
(warning, VBA newbie....)

I  have a macro which has been working fine when run in PP 2003 but is not
working in PP 2007.  I'm trying to insert an image onto a slide, the image is
on a web server so I have something similar to the following code:

ActiveWindow.Selection.SlideRange.Shapes.AddPicture(FileName:="http://webserverhost/images/image1.gif",
LinkToFile:=msoFalse, SaveWithDocument:=msoTrue, Left:=323, Top:=233,
Width:=75, Height:=75).Select

In PP 2003, it works fine, the web image correctly gets displayed on the
slide.
In PP 2007, I get a 'Error -2147024809: The specified file wasn't found'

If I 'manually' insert the pic in a slide, by choosing Insert->Picture and
then specify 'http://webserverhost/images/image1.gif' as the filename, the
image shows up in the slide as it should. In otherwords, if i don't run the
macro and do it by hand in PP, it works.

I'm not sure what is going on. Is there something new in PP 2007 that is
preventing images from a web server (which in my case happens to be on the
local machine, so it's an internal web site) being added to a slide?

Thanks in advance for any help!

-BP
Steve Rindsberg - 23 Jul 2007 16:07 GMT
Replied to elsewhere.

Short version:  seems you've found a bug (or something that's broken by design).
It's gone up the ladder to MS.  With luck we'll hear back which it is, but I can't promise when or even if
that'll happen.

> (warning, VBA newbie....)
>
[quoted text clipped - 22 lines]
>
> -BP

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.