Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Uwe Uwe is offline
external usenet poster
 
Posts: 9
Default insert an ICON in a cell

How can I insert an icon in a cell programatically?
--
Thanks,
Uwe
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,118
Default insert an ICON in a cell

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?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)

"Uwe" wrote in message
...
How can I insert an icon in a cell programatically?
--
Thanks,
Uwe



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default insert an ICON in a cell

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



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Uwe" wrote in message ...
How can I insert an icon in a cell programatically?
--
Thanks,
Uwe

  #4   Report Post  
Posted to microsoft.public.excel.programming
Uwe Uwe is offline
external usenet poster
 
Posts: 9
Default insert an ICON in a cell

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" wrote:

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



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Uwe" wrote in message ...
How can I insert an icon in a cell programatically?
--
Thanks,
Uwe


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default insert an ICON in a cell

Hi Uwe

See if Debra have something for you
http://www.contextures.com/tiptech.html

But I think there is no way to change the red triangle and you must add a icon on top of the cell
if you always want to see it


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Uwe" wrote in message ...
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" wrote:

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



--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Uwe" wrote in message ...
How can I insert an icon in a cell programatically?
--
Thanks,
Uwe


Reply
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
Insert option icon cvgairport Excel Discussion (Misc queries) 2 June 1st 10 02:31 PM
Icon Sets - Display icon in one cell depending upon value in anoth Nolene Excel Worksheet Functions 2 February 26th 10 05:43 AM
How can I insert a date with an icon (calendar) insert Alfredo Mederico[_2_] Excel Discussion (Misc queries) 4 September 21st 07 01:20 AM
2007 insert button/icon [email protected] Excel Worksheet Functions 4 July 11th 06 08:50 PM
'Insert Rows Icon' ginger Excel Discussion (Misc queries) 1 June 8th 06 01:57 AM


All times are GMT +1. The time now is 08:34 PM.

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

About Us

"It's about Microsoft Excel"