+ Reply to Thread
Results 1 to 3 of 3

Change pictures in Excel?

  1. #1
    Registered User
    Join Date
    07-14-2006
    Posts
    11

    Change pictures in Excel?

    Hi!
    I want to change a picture depending of a choice in a cell!
    EX: In D3 I have a list (dog, cat and bird) and I want to show a picture of the choice beside the list!
    Can I do that

    Thanks !

  2. #2
    Ken Johnson
    Guest

    Re: Change pictures in Excel?

    Hi peterss,

    Check out John McGimpsey's site...

    http://www.mcgimpsey.com/excel/lookuppics.html

    Ken Johnson


  3. #3
    Registered User
    Join Date
    07-14-2006
    Posts
    11
    Quote Originally Posted by Ken Johnson
    Hi peterss,

    Check out John McGimpsey's site...

    http://www.mcgimpsey.com/excel/lookuppics.html

    Ken Johnson

    Hi !
    I want to show a picture depending of a choice in a specific cell. I have asked before and I get a link to some exempel, the problem is that a get an error message and I dont now what to do (I´m a amateur!).

    The link was: http://www.mcgimpsey.com/excel/lookuppics.html

    I copy the code to my file, but I get an "error 13 - miss match" all the time.
    Code:
    Private Sub Worksheet_Calculate()
    Dim oPic As Picture
    Me.Pictures.Visible = True
    With Range("B41")
    For Each oPic In Me.Pictures
    If oPic.Name = .Text Then
    oPic.Visible = True
    oPic.Top = .Top
    oPic.Left = .Left
    Exit For
    End If
    Next oPic
    End With
    End Sub

    "oPic.Name" never get the same like ".Text", my pictures have names like 212,213... but "oPic.Name" is like 103,104...
    So when it comes to "Next oPic" it stops!

    What should I do? Where is the pictures defind? Whats "Me.Pictures"?

    Thanks

+ 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