+ Reply to Thread
Results 1 to 6 of 6

Picture lookup code triggered by calculation change

  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

    Please Login or Register  to view this content.
    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.

    Please Login or Register  to view this content.
    Last edited by KraftWorker; 10-22-2012 at 06:30 PM.

  2. #2
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Picture lookup code triggered by calculation change

    If (updatedCel) <---- there's a problem, for sure. Not sure if that is causing your problem, but it won't help. =)

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

    Re: Picture lookup code triggered by calculation change

    Its my inexperience that is causing me not to know how to designate the changed cell. I also changed the code drop downs to be this
    Private Sub Worksheet_Calculate()

  4. #4
    Forum Expert Moo the Dog's Avatar
    Join Date
    09-28-2012
    Location
    Wisconsin
    MS-Off Ver
    Office 365 (PC & Mac)
    Posts
    1,845

    Re: Picture lookup code triggered by calculation change

    Quote Originally Posted by KraftWorker View Post
    Its my inexperience that is causing me not to know how to designate the changed cell. I also changed the code drop downs to be this
    Private Sub Worksheet_Calculate()
    Mine, too. I am just starting to learn VBA. So, like I said, I'm not sure what is causing the issue, but 'updatedCell' is mistyped in your IF statement. So that is definitely something to correct before proceeding.

    - Vince

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

    Re: Picture lookup code triggered by calculation change

    Ok, I fixed the spelling correction and also tagged the code properly. Thanks for the help so far. I'm still not getting the code to work yet.

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

    Re: Picture lookup code triggered by calculation change

    I have changed my code and it is partially working.
    What I really need now is for someone to help me figure out how to duplicate the outcome to multiple cells, Any takers
    New Code
    Please Login or Register  to view this content.

+ 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