Can you supply more information?
What icon? from where? A network file? an image in the workbook?
What prompts the insertion? User selection? Something else?
--------------------------
Sub test()
Dim myPict As Picture
With ActiveSheet.Range("D5")
Set myPict = .Parent.Pictures.Insert("C:\YourPic.bmp")
myPict.Top = .Top
myPict.Width = .Width
myPict.Height = .Height
myPict.Left = .Left
myPict.Placement = xlMoveAndSize
End With
End Sub
I have some text from a database attached to a cell a a comment. This is
working quite will with the red triangle at the top of the cell. The client
want to show a paperclip image in the cell to more graphically show a comment
is associated with the cell.
--
Thanks,
Uwe
Ron de Bruin said:
Hi Uwe
You can try this for cell D5
Sub test()
Dim myPict As Picture
With ActiveSheet.Range("D5")
Set myPict = .Parent.Pictures.Insert("C:\YourPic.bmp")
myPict.Top = .Top
myPict.Width = .Width
myPict.Height = .Height
myPict.Left = .Left
myPict.Placement = xlMoveAndSize
End With
End Sub
I have some text from a database attached to a cell a a comment. This is
working quite will with the red triangle at the top of the cell. The client
want to show a paperclip image in the cell to more graphically show a comment
is associated with the cell.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.