Microsoft 365 and Office | Development | Other
Building custom solutions that extend, automate, and integrate Microsoft 365 apps.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I can't find any Excel VBA code for:
With Cells(1, 1).Comment.Shape
.Fill.UserPicture "C:\Users\JohnDoe\Pictures\Picture.jpg"
'\How to set option [Format Comment]-[Colors and Lines]-[Fill Effects]-[Picture]-[Lock picture aspect ratio] in VBA?
'\Following line is not the same
.LockAspectRatio = msoTrue
End With
Cells(1, 1).Comment.Shape..LockAspectRatio = msoTrue is not the same
Any ideas?
TIA
Reinhard