Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 04-13-2012, 04:41 PM
CatMan CatMan is offline How do you identify the ID of a picture in PowerPoint? Windows 7 32bit How do you identify the ID of a picture in PowerPoint? Office 2010 32bit
Intermediate
How do you identify the ID of a picture in PowerPoint?
 
Join Date: Apr 2012
Posts: 39
CatMan is on a distinguished road
Default

Hi John, Thanks for the info, it really helps! I discovered I can get the picture ID by applying an animation, the animation pane reports the picture ID but this is a round about way to do it. Selection Pane gets me a little closer to solving my problem. When I apply selection pane to an arbitrary PowerPoint example one slide has two pictures with the same name 'Picture 30' (twice). That surprised me. When I use your code suggestion '....ShapeRange(1).Id' each Picture 30 has a different ID, which is more logical to me.

Can you offer some code that would allow me to delete a picture by Picture name or by Picture ID. Also I would like to adjust the location of a picture on the slide (move it). Here's what I have tried so far (but it doesnt work)

Code:
'Delete picture (by Picutre number or ID number)
ActiveWindow.Name("Picture 30").Delete
ActiveWindow.ShapeRange(1).ID("13340").Delete.

'Move picture (by points)
ActiveWindow.ShapeRange(1).ID("13340').left(30)
ActiveWindow.ShapeRange(1).ID("13340').top(30)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Powerpoint automatically changing picture size when adding a picture (2010) One_Life PowerPoint 7 01-20-2012 06:57 AM
How do you identify the ID of a picture in PowerPoint? Picture size for Powerpoint roligan PowerPoint 2 12-22-2011 07:18 AM
How do you identify the ID of a picture in PowerPoint? Changing opacity of a picture on powerpoint Straitsfan PowerPoint 1 05-18-2011 10:30 AM
How do you identify the ID of a picture in PowerPoint? How to identify the paragraph number you are on SaneMan Word VBA 1 05-18-2011 05:43 AM
PowerPoint 2003 - Change default location for Insert Picture Fee PowerPoint 0 05-12-2011 02:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:57 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