#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default drop down list

I dont know if this can be done, but
If I have two or more drop down list populated in a particular way I need a
picture to reflect .

Can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default drop down list

See:

http://www.mcgimpsey.com/excel/lookuppics.html
--
Gary''s Student - gsnu200784


"Faiek" wrote:

I dont know if this can be done, but
If I have two or more drop down list populated in a particular way I need a
picture to reflect .

Can this be done?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default drop down list

This is fantastic

This will really help me !!
Can this be done across three drop down list?

Thanx Gary's Student

"Gary''s Student" wrote:

See:

http://www.mcgimpsey.com/excel/lookuppics.html
--
Gary''s Student - gsnu200784


"Faiek" wrote:

I dont know if this can be done, but
If I have two or more drop down list populated in a particular way I need a
picture to reflect .

Can this be done?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,073
Default drop down list

On May 6, 8:07 pm, Faiek wrote:
This is fantastic

This will really help me !!
Can this be done across three drop down list?

Thanx Gary's Student

"Gary''s Student" wrote:
See:


http://www.mcgimpsey.com/excel/lookuppics.html
--
Gary''s Student - gsnu200784


"Faiek" wrote:


I dont know if this can be done, but
If I have two or more drop down list populated in a particular way I need a
picture to reflect .


Can this be done?


Assuming 12 pictures named Picture 1 through to Picture 12.
Pictures 1 to 4 to be shown/hidden at C1, Pictures 5 to 8 to be shown/
hidden at F1 and Pictures 9 to 12 to be shown/hidden at I1.
Each of your three data validation drop downs refer to their own
separate VLOOKUP table.
Then, the following code might be what you are wanting to do...

Private Sub Worksheet_Calculate()
Dim oPic As Picture
Dim ncPix1 As New Collection
Dim ncPix2 As New Collection
Dim ncPix3 As New Collection
For Each oPic In Me.Pictures
Select Case oPic.Name
Case "Picture 1", "Picture 2", _
"Picture 3", "Picture 4"
ncPix1.Add Item:=oPic
Case "Picture 5", "Picture 6", _
"Picture 7", "Picture 8"
ncPix2.Add Item:=oPic
Case "Picture 9", "Picture 10", _
"Picture 11", "Picture 12"
ncPix3.Add Item:=oPic
End Select
Next oPic
Me.Pictures.Visible = False
With Range("C1")
For Each oPic In ncPix1
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Exit For
End If
Next oPic
End With
With Range("F1")
For Each oPic In ncPix2
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Exit For
End If
Next oPic
End With
With Range("I1")
For Each oPic In ncPix3
If oPic.Name = .Text Then
oPic.Visible = True
oPic.Top = .Top
oPic.Left = .Left
Exit For
End If
Next oPic
End With
End Sub

It's just a tripling of the original code after all the Pictures on
the sheet have been added to three new collections so that they can be
referred to separately without affecting the visibility of Pictures in
other collections.

Ken Johnson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default drop down list

Have a look at the example workbook that Bernie Dietrick devised.

Allows for multiple DV dropdowns with multiple pictures associated with each.

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

DV0049 - ClipArt Selection

Edit the code to suit.


Gord Dibben MS Excel MVP

On Tue, 6 May 2008 03:07:01 -0700, Faiek
wrote:

This is fantastic

This will really help me !!
Can this be done across three drop down list?

Thanx Gary's Student

"Gary''s Student" wrote:

See:

http://www.mcgimpsey.com/excel/lookuppics.html
--
Gary''s Student - gsnu200784


"Faiek" wrote:

I dont know if this can be done, but
If I have two or more drop down list populated in a particular way I need a
picture to reflect .

Can this be done?




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop down lists that auto create and then filter the next drop down list [email protected] Excel Worksheet Functions 2 September 30th 07 11:53 AM
how do I use one drop-list to modify another drop-lists options? [email protected] Excel Discussion (Misc queries) 3 September 9th 07 05:46 PM
Drop Down List choice selecting another drop down list CVD0722 Excel Worksheet Functions 3 October 31st 06 01:02 PM
how do I link a drop down list entry to a new drop down cell? lmunzen Excel Discussion (Misc queries) 1 August 15th 06 04:59 PM
multiple select from the drop down list in excel. list in one sheet and drop down in sriramus Excel Discussion (Misc queries) 5 October 27th 05 06:55 PM


All times are GMT +1. The time now is 05:00 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"