LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default Cannot Find Object "Lock Picture Aspect Ratio"

Can someone please tell me the object for "lock picture aspect ratio" for
pictures used in comments?

I want to programmatically prevent a photo from being distorted after I add
it to a comment box using the following code:
Selection.AddComment.Shape.Fill.UserPicture (Selection.Value)

I have found Selection.Comment.Shape.LockAspectRatio. But that only locks
the aspect ratio of the comment box itself, not the photo.

This is done conventionally in Excel in the following manner:
[Right-click comment border] Format Comment€¦ Colors and Lines [tab]
Fill: Color: Fill Effects€¦ Lock picture aspect ratio.

Thanks for your help.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
"method 'execute' of object 'find' failed" [email protected][_2_] Excel Discussion (Misc queries) 0 August 31st 07 10:29 AM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
What is Error "Method "Paste" of object "_Worksheet" failed? vat Excel Programming 7 February 17th 06 08:05 PM
Scatter charts -- can I lock in a 1:1 aspect ratio for axes? Charts and Charting in Excel 2 May 31st 05 08:56 PM
Move a "picture" object MacroMan Excel Programming 3 July 14th 03 05:30 PM


All times are GMT +1. The time now is 06:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"