MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old Apr 2nd, 2002, 01:16 PM   #1
Dorothy Lane
New Member
 
Join Date: Apr 2002
Posts: 2
Default

I'm a little over my head but I'm hoping someone can tell me whether this is possible. I have a pull down menu that I would like to link a graphic depending on the users selection. Can this be done and if so how?
Thanks-
Dorothy Lane is offline   Reply With Quote
Old Apr 2nd, 2002, 05:13 PM   #2
Damon Ostrander
MrExcel MVP
 
Damon Ostrander's Avatar
 
Join Date: Feb 2002
Location: Denver, Colorado USA
Posts: 4,014
Default

Hi Dorothy,

Yes, it can be done. But I can't provide instructions without knowing a bit more. You didn't mention where or what your pulldown menu is. Is it a combobox on a custom userform? Or perhaps a custom menu you have added to one of the Excel toolbars? And what do you mean by "link"? Do you want it to appear someplace when an associated item in the pulldown is selected, and if so, where?
some clarification would be helpful.

Damon
Damon Ostrander is offline   Reply With Quote
Old Apr 2nd, 2002, 06:10 PM   #3
Duane
Board Regular
 
Join Date: Mar 2002
Location: Toronto
Posts: 173
Default

Damon is right, we'll need some more info in order to have an idea in what direction to go.

For example, you might want a combobox to allow a user to select from a list of, say, names, and then, depending on which name is selected, a cell will say "attended" or "did not attend". The combobox would use the output cell which would be the value a vlookup used to return the status of the name. As the combobox selection changes, the name changes, the output cell number changes and the vlookup returns the appropriate data.

Or, you could be looking for something totally different. Help us help you!
__________________
Regards, Duane
h. Office2003 in WinXP
o. Office2007 in Win7
Duane is offline   Reply With Quote
Old Apr 3rd, 2002, 06:59 AM   #4
Dorothy Lane
New Member
 
Join Date: Apr 2002
Posts: 2
Default

Yes I am using a custom combo box on a user form. There are 5 catagories with several selections that the user can select and I would like to have a graphic appear based on their selection. I have used vlookup for a number to appear but I was not sure if you can use it for a graphic. Your help will be greatly appreciated!!
Dorothy Lane is offline   Reply With Quote
Old Apr 4th, 2002, 12:48 AM   #5
Damon Ostrander
MrExcel MVP
 
Damon Ostrander's Avatar
 
Join Date: Feb 2002
Location: Denver, Colorado USA
Posts: 4,014
Default

Hi again Dorothy,

You still forgot to mention WHERE you wanted the picture to appear. I will assume you want it to appear right on the form itself. You can do this via the Image ActiveX control. This control in on the Controls toolbar in the lower-right corner. To display a picture using this control, set the Picture property to the bitmap picture file like this:

Image1.Picture = LoadPicture("C:MyPic.jpg")

If you want to look this picture up in a table (and yes, you can use VLOOKUP or HLOOKUP) you just need to put the string that is the pathname into the table and use your lookup to find the file name and plug it in as the LoadPicture argument above. It is a bit tedious to explain here, but if you want an example, give me a little more explanation of how you want the lookup to work (e.g., do you want to assign a name to each picture, such as "3-carat ruby" and when the user selects this name from a listbox on the userform the picture appears?), and your email address, and I will try to send you a simple example.

Happy computing.

Damon
Damon Ostrander is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:08 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes