Hello Forum,
I am coming to you regarding a small problem on a macro.
This macro is made to insert pictures in a cell automatically after double click. It resizes the pic according to heigh and width of the cell. Very usefull macro in fact :-)
This macro works very well with excel 2003.
Now am shifting to excel 2007 and noticed that macro still works. insertion of pictures is still happening.
But once inserted and while sorting out the excel sheet it appears that pictures wont move.
I hope someone has the solution to this.
Thanks in advance
the script is as follow and i am attaching the file as well
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Application.Dialogs(xlDialogInsertPicture).Show
With Selection
.ShapeRange.LockAspectRatio = msoFalse
.Width = Target.Width
.Height = Target.Height
.Placement = 1
.PrintObject = True
End With
End Sub
Bookmarks