Macro Help - Insert an image into a Cells Comment Box

lynch

New Member
Joined
Apr 5, 2012
Messages
3
Hi Guys,

I was looking at the below link,

http://www.mrexcel.com/forum/showthread.php?t=72113

And basically I need the above doing, but as a macro.

Could someone help me produce it?

1)user highlight the target cell
2)user clicks a button to start the macro
3)the macro then brings up a dialog box which allow the user to select the image from c:\my pictures
4)the image is then inserted into the comment box

Any genius help?

Thanks for your time:):)
 

lynch

New Member
Joined
Apr 5, 2012
Messages
3
Hi Andrew,

Thanks for the quick reply! I may be having teething problems so please excuse my cheekyness!

This seems to paste a chart into my cell and not a picture?

Also it dosnt allow the user to select an image but asks to name the image?

Again sorry for being slow, this is new to me but I am having much fun trying! any ideas?:)
 

Andrew Poulsom

MrExcel MVP
Joined
Jul 21, 2002
Messages
73,092
You'll have to amend the macro if you want to select a picture on disk. You can use the FileDialog property to enable the user to select one.
 

lynch

New Member
Joined
Apr 5, 2012
Messages
3
Thanks Andrew, Ive got this working!

Somebody buy this man a beer!!
 

Forum statistics

Threads
1,081,676
Messages
5,360,441
Members
400,586
Latest member
Minty

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...
Top