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 29th, 2002, 08:10 AM   #1
verluc
Board Regular
 
Join Date: Mar 2002
Posts: 1,288
Default

I have a sheet with in column A, 500 symbols
of stock quotes.
I want,when I move the cursor trough this column,there comes a display(box) that give me the name of the company.
Ex. AAPL Apple Computer
Is that possible?
Many thanks.
verluc is offline   Reply With Quote
Old Apr 29th, 2002, 08:25 AM   #2
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

Stupid question: You say you have the stock symbols in column A, where are the names of the companies housed?
__________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club
Mark O'Brien is offline   Reply With Quote
Old Apr 29th, 2002, 08:28 AM   #3
verluc
Board Regular
 
Join Date: Mar 2002
Posts: 1,288
Default

Quote:
On 2002-04-29 07:25, Mark O'Brien wrote:
Stupid question: You say you have the stock symbols in column A, where are the names of the companies housed?
All the names of this companies are housed in another sheet.(let's say in column A)
verluc is offline   Reply With Quote
Old Apr 29th, 2002, 09:06 AM   #4
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

When you say "Display Box" do you have anything in particular in mind. Are you adverse to using VBA? (I think this is the only way to do this)

Would you want this display box permanently on the screen, or just when you are in column A? i.e. if you go into column B, hide the display?


__________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club
Mark O'Brien is offline   Reply With Quote
Old Apr 29th, 2002, 09:09 AM   #5
verluc
Board Regular
 
Join Date: Mar 2002
Posts: 1,288
Default

Quote:
On 2002-04-29 08:06, Mark O'Brien wrote:
When you say "Display Box" do you have anything in particular in mind. Are you adverse to using VBA? (I think this is the only way to do this)

Would you want this display box permanently on the screen, or just when you are in column A? i.e. if you go into column B, hide the display?


No I want only the display when I am in column A, on the place who the cursor is.
When I move the cursor to another cell in column A then I get another display.
Maybe, on the toolbar, the remarque is a solution?
Any idea?
verluc is offline   Reply With Quote
Old Apr 29th, 2002, 09:18 AM   #6
Mark O'Brien
MrExcel MVP
 
Mark O'Brien's Avatar
 
Join Date: Feb 2002
Location: Columbus, OH, USA
Posts: 3,519
Default

OK, let's use the Excel StatusBar for this. (the bar located in the Bottom Left corner)

In my example, I created a new workbook and on sheet 1 I put the values 1 to 10 on sheet one in A1:A10, on sheet2 I put A to J in A1:A10.

I right clicked on Sheet1's tab and inserted this code:


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Value = "" Then Exit Sub

If Target.Column = 1 Then 'Column A
Application.StatusBar = Sheets("Sheet2").Range(Target.Address).Value
Else
Application.StatusBar = False
End If
End Sub


Now, when I change from cell to cell on sheet1, column A, I get the value from Sheet2 Column A.

HTH
__________________
Mark O'Brien

Columbus Ohio Celtic Supporters Club
Mark O'Brien is offline   Reply With Quote
Old Apr 29th, 2002, 09:33 AM   #7
Sam W
New Member
 
Join Date: Feb 2002
Location: Louisiana USA
Posts: 26
Default

I have a sheet with in column A, 500 symbols
of stock quotes.
I want,when I move the cursor trough this column,there comes a display(box) that give me the name of the
company.
Ex. AAPL Apple Computer
Is that possible?
Many thanks.
If the symbols are always located in the same cells, you could insert a comment for each cell. (Insert/comment) Of course you would have to type 500 different comments but this sounds like what you are looking for. When the cursor is held over the symbol the comment box will appear showing the stock name.

Good luck, Sam
Sam W is offline   Reply With Quote
Old Apr 30th, 2002, 02:25 AM   #8
verluc
Board Regular
 
Join Date: Mar 2002
Posts: 1,288
Default

Quote:
On 2002-04-29 08:18, Mark O'Brien wrote:
OK, let's use the Excel StatusBar for this. (the bar located in the Bottom Left corner)

In my example, I created a new workbook and on sheet 1 I put the values 1 to 10 on sheet one in A1:A10, on sheet2 I put A to J in A1:A10.

I right clicked on Sheet1's tab and inserted this code:


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Value = "" Then Exit Sub

If Target.Column = 1 Then 'Column A
Application.StatusBar = Sheets("Sheet2").Range(Target.Address).Value
Else
Application.StatusBar = False
End If
End Sub


Now, when I change from cell to cell on sheet1, column A, I get the value from Sheet2 Column A.

HTH
OK Marc,but when I come at the laste row then I become alwayrs the last text.
Example:
Column B
YHOO then I recieve in the statusbar: YAHOO INC.That's right,but the following row is ""
and I still receive YAHOO.This have to be ""
Any idea to change this macro?
Many thanks
verluc is offline   Reply With Quote
Old Apr 30th, 2002, 02:40 AM   #9
robfritts
New Member
 
Join Date: Apr 2002
Location: KC, MO
Posts: 18
Default

Will event handling work with *********** or something similar to whatever that code is in Java for mouseover events?

That sounds like a solution, assuming that MouseOver is an event.


robfritts is offline   Reply With Quote
Old Apr 30th, 2002, 02:41 AM   #10
verluc
Board Regular
 
Join Date: Mar 2002
Posts: 1,288
Default

Quote:
On 2002-04-30 01:25, verluc wrote:
Quote:
On 2002-04-29 08:18, Mark O'Brien wrote:
OK, let's use the Excel StatusBar for this. (the bar located in the Bottom Left corner)

In my example, I created a new workbook and on sheet 1 I put the values 1 to 10 on sheet one in A1:A10, on sheet2 I put A to J in A1:A10.

I right clicked on Sheet1's tab and inserted this code:


Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
If Target.Value = "" Then Exit Sub

If Target.Column = 1 Then 'Column A
Application.StatusBar = Sheets("Sheet2").Range(Target.Address).Value
Else
Application.StatusBar = False
End If
End Sub


Now, when I change from cell to cell on sheet1, column A, I get the value from Sheet2 Column A.

HTH
OK Marc,but when I come at the laste row then I become alwayrs the last text.
Example:
Column B
YHOO then I recieve in the statusbar: YAHOO INC.That's right,but the following row is ""
and I still receive YAHOO.This have to be ""
Any idea to change this macro?
Many thanks
Sorry Marc,for this question.I have found the
error and I changed your macro.Now it's fine.
Excuse me.
verluc 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 11:36 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