Re Picture Stock Brochure TIA

G

Guest

Hi Gord and every body else,
I picked this code up after an extensive search works great
Private Sub Worksheet_Calculate()
Dim oPic As Picture
With Range("F1")
For Each oPic In Me.Pictures
Select Case LCase(oPic.Name)
Case LCase("LogoPictName"), LCase("AnotherPictAlwaysVisible")
'do nothing
Case Is = LCase(.Text)
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Case Else
oPic.Visible = False
End Select
Next oPic
End With
End Sub

My task now is to use it so that when I call the cell A3, next one down the same happens as with A2 from mcglimpses'site
any ideas or pointers to a site that would show this or something similar.
Can i call the same function for two seperate cells
 
G

Gord Dibben

Can i call the same function for two seperate cells

Not with the code you posted or with the code from John's lookuppic.xls

I alresdy posted the link to Bernie Dietricks's workbook that allows for
multiple pictures to be displayed.

Have you read the responses you got? I sent two. You obviously saw one or you
would not have used my name.

Here is the link again.

http://www.contextures.on.ca/excelfiles.html#DataVal

DV0049 - ClipArt Selection


Gord
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top