Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default How can I change an image based on cell value

I want to place a picture of the employee on a Rating form
and it must change based on the employee's name selected
from a dropdown combo list box.

Thanks

Adriaan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 66
Default How can I change an image based on cell value

OK,

this is what ya gotta do.

Make the for with the combobox and image control.


Private Sub UserForm_Initialize()
ComboBox1.List = Range("a1:a4").Value ' your range. this will load the
combobox with the names
End Sub



Private Sub ComboBox1_Change()
Image1.Picture = LoadPicture("C:\My Documents\My Pictures\" & ComboBox1.Text
& ".bmp") ' put your path there and the extension. bmp or gif.


End Sub



hope it helps.




Cesar Zapata




"Adriaan vd Linde" wrote in message
...
I want to place a picture of the employee on a Rating form
and it must change based on the employee's name selected
from a dropdown combo list box.

Thanks

Adriaan



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
How to display image based on if-condition? Eric Excel Discussion (Misc queries) 2 February 8th 10 06:32 AM
insert an image based on a cell value brig239 New Users to Excel 1 June 3rd 09 07:10 PM
Can i use the IF condition to import an image or change a cell col martin59 Excel Worksheet Functions 3 August 10th 08 11:02 AM
DISPLAY Image Based on Logic RayportingMonkey Excel Discussion (Misc queries) 5 July 25th 07 05:54 PM
Is there a way you can get Excel to change an image in a cell barry24uk Excel Discussion (Misc queries) 4 January 4th 06 08:16 AM


All times are GMT +1. The time now is 09:36 PM.

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

About Us

"It's about Microsoft Excel"