Results 1 to 6 of 6

Picture lookup code triggered by calculation change

Threaded View

  1. #1
    Registered User
    Join Date
    10-22-2012
    Location
    Allentown, PA
    MS-Off Ver
    Excel 2007
    Posts
    4

    Picture lookup code triggered by calculation change

    Hello
    I am new to excel and have a spreadsheet that pulls a picture from a file when you change the contents of the cell. I would like to be able to have this cell use a vlookup function to control its contents thereby changing the picture when an alternate cell is changed. So far I have this but it does not work. Any help would be greatly appreciated.

    Private Sub Worksheet_Change(ByVal Target As Range)
        Dim updatedCell As Range
        Set updatedCell = Range("F3")
     
        If (updatedCel) = ("F3") Then
           NewPic = "C:\users\kekrk23\desktop\" & Range("C7").Value
           Target.Comment.Shape.Fill.UserPicture NewPic
       
    End If
    
    End Sub
    Last edited by KraftWorker; 10-22-2012 at 06:30 PM.

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