+ Reply to Thread
Results 1 to 10 of 10

Specific comment (picture) on each specific item in a dropdown list

  1. #1
    Registered User
    Join Date
    05-20-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    21

    Specific comment (picture) on each specific item in a dropdown list

    Hello! Everyone..I'm new here and I'm glad that there is this kind of forum. Very helpful for me since I'm interested in excel programming though I'm a bit new in Excel. My question is this.. Is there a way where I can assign a comment (picture) to specific term, not cell. Example, if I choose flower in a dropdown list, a picture of flower in a comment box will appear? I hope its possible. Thanks =)
    Last edited by freesa; 05-21-2011 at 11:32 PM.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Specific comment (picture) on each specific item in a dropdown list

    Hello & Welcome to the board,

    See if podcast 1172 could help you....

    http://learnmrexcel.wordpress.com/2010/01/
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    05-20-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Specific comment (picture) on each specific item in a dropdown list

    Hello Jeff!

    That was prompt. Exactly what I'm looking for. Super thanks =)

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Specific comment (picture) on each specific item in a dropdown list

    Thanks for the follow up and glad it worked for you...you're welcome

    If you are satisfied with the answer provided, please don’t forget to mark the thread as solved.

    How to mark a thread Solved
    Go to the first post
    Select
    -- Edit
    -- Go Advanced
    -- Below the word Title you will see a dropdown with the word No prefix
    -- Update to Solved and then select Save

  5. #5
    Registered User
    Join Date
    05-20-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Specific comment (picture) on each specific item in a dropdown list

    hello!

    One more thing. I thought it'll work once i followed the instruction from the podcast, unfortunately I can't make it work. Could you please look at my script and see if there's something wrong with it. Here it is..

    Private Sub Worksheet_Change(ByVal Target As Range)
    If Target.Address = "$c$6" Then
    newpic = "C:\aaa\Pics\" & Range("c7").Value & ".jpg"
    Target.Comment.Shape.Fill.UserPicture newpic
    End If
    End Sub

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Specific comment (picture) on each specific item in a dropdown list

    If you followed the directions exactly then maybe you should remove the end part (jpg).

    Worked good for me.

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    05-20-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    21

    Re: Specific comment (picture) on each specific item in a dropdown list

    Hello Jeff,
    Thanks for your patience. Actually I played with the code and insert the ".jpg" part hoping I can make it work since i can't make it work with the original script. I want to show you the excel file that i made but unfortunately i don't how to attach it here.

  8. #8
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Specific comment (picture) on each specific item in a dropdown list

    I believe you can click edit and then manage attachments and upload.

    Here is what I used and it worked fine.

    Please Login or Register  to view this content.
    Make sure the path with the files exists, you have you vlookup in C7, and the names of the files in column B. Also, make sure the code is in the worksheet module. Right click on the sheet tab and view code.
    Last edited by jeffreybrown; 05-21-2011 at 11:20 PM.

  9. #9
    Registered User
    Join Date
    05-20-2011
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    21

    Smile Re: Specific comment (picture) on each specific item in a dropdown list

    Hi!
    It worked fine now, though I still don't know what went wrong before. Thank you very much. It's really nice to know that there are some people willing to help others for free.

    God bless Jeff

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Specific comment (picture) on each specific item in a dropdown list

    Again you are very welcome

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1