Hi all,
I have a script that adds a picture and resizes it. How do I lock the aspect ratio of the image attached?
My script is below ... I thought it should work correctly with the last line? Any help is appreciated! Thanks!
ActiveCell.AddComment.Text ""
ActiveCell.Comment.Shape.Fill.UserPicture MyFiles
ActiveCell.Comment.Shape.Height = 300
ActiveCell.Comment.Shape.Width = 300
ActiveCell.Comment.Shape.LockAspectRatio = msoTrue
I have a script that adds a picture and resizes it. How do I lock the aspect ratio of the image attached?
My script is below ... I thought it should work correctly with the last line? Any help is appreciated! Thanks!
ActiveCell.AddComment.Text ""
ActiveCell.Comment.Shape.Fill.UserPicture MyFiles
ActiveCell.Comment.Shape.Height = 300
ActiveCell.Comment.Shape.Width = 300
ActiveCell.Comment.Shape.LockAspectRatio = msoTrue