Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2014, 02:00 AM
charm charm is offline Set offset properties of a picture Windows XP Set offset properties of a picture Office 2007
Novice
Set offset properties of a picture
 
Join Date: Oct 2014
Posts: 4
charm is on a distinguished road
Default Set offset properties of a picture

Hi Experts,



I am here again with a new question, I googled a lot but couldnt find the answer.

I have inserted a picture in autoshape using these lines

Code:
Set shp = Sld.Shapes.AddShape(5, 110, 0, 200, 100)
    shp.Fill.UserPicture "C:\Documents and Settings\charm\Desktop\charm.jpg"
How can I change the Offsets properties with the vba code so that picture should come at top left corner of the autoshape.

Thanks,
charm
Reply With Quote
  #2  
Old 11-01-2014, 05:41 AM
JohnWilson JohnWilson is offline Set offset properties of a picture Windows 7 64bit Set offset properties of a picture Office 2010 32bit
Programmer
 
Join Date: Nov 2008
Location: UK
Posts: 1,912
JohnWilson has a spectacular aura aboutJohnWilson has a spectacular aura about
Default

Don't really see what you mean but you can set offsets like this. Note the value is in POINTS (72 points=1 inch, 28.4 points = 1 cm)

Code:
    shp.PictureFormat.Crop.PictureOffsetX = 72
    shp.PictureFormat.Crop.PictureOffsetY = 72
__________________
Microsoft PowerPoint MVP 2007-2023
Free Advanced PowerPoint Tips and Tutorials
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Set offset properties of a picture Data validation list filter with range defined by OFFSET Mango123 Excel 4 03-18-2014 02:52 PM
Set offset properties of a picture Updating Document Properties without using advanced properties dialogue thedr9wningman Word VBA 3 01-20-2014 05:56 PM
Set offset properties of a picture Syntax to use OFFSET() in a cell formula? dlowrey Excel 3 07-09-2013 09:15 AM
Set offset properties of a picture Picture properties bug in Word 2010 Macro Recorder ralphpickering Word VBA 5 10-24-2012 10:15 AM
Set offset properties of a picture Vlookup, offset, match & countif jujuwillis Excel 2 10-15-2011 11:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:46 AM.


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