Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-07-2012, 07:40 AM
CatMan CatMan is offline Title:  Why does focus fail to change to MyPic2.jpg (intermittently) after .addPictur Windows 7 32bit Title:  Why does focus fail to change to MyPic2.jpg (intermittently) after .addPictur Office 2010 32bit
Intermediate
Title:  Why does focus fail to change to MyPic2.jpg (intermittently) after .addPictur
 
Join Date: Apr 2012
Posts: 39
CatMan is on a distinguished road
Default


Running in Excel, I should have mentioned that.
Reply With Quote
  #2  
Old 05-07-2012, 07:47 AM
JohnWilson JohnWilson is offline Title:  Why does focus fail to change to MyPic2.jpg (intermittently) after .addPictur Windows 7 64bit Title:  Why does focus fail to change to MyPic2.jpg (intermittently) after .addPictur Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,913
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Quote:
Originally Posted by CatMan View Post
Running in Excel, I should have mentioned that.
Yep, that's the problem.

Unless you have set a reference to powerPoint Excel has no idea what a Presentation or a Slide are and will be confused by "Shape"

In the second sub routine change these to object

Sub addpic(opres As Object, osld As Object, strPath As String)
Dim opic As Object
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Title:  Why does focus fail to change to MyPic2.jpg (intermittently) after .addPictur Fail to access outlook to set the settings!!!!! Jamal NUMAN Outlook 3 04-20-2011 06:32 PM
Duration changes fail to update work effort Panteledes Project 6 05-25-2010 02:27 PM
Secondary IP address Outlook Fail-over danish.mustafa Outlook 0 03-01-2010 01:32 AM
Help with forms (shifting focus) jrh312 Word 0 11-19-2009 12:59 PM
Shortcuts Fail sussertown Outlook 0 02-16-2009 06:38 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:32 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft