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 Mar 17th, 2002, 04:35 AM   #1
jrf001
New Member
 
Join Date: Mar 2002
Posts: 19
Default

HI,
I have created a combo box with 10 store names. This is situated in A1 on each sheet.There is 10 worksheets containing data for each store
I want to be able to select say the third store in the list and it will take me to that stores worksheet (was called sheet3, but its now the store name).

I am sure its got something to do with linkedcell in the properites box but I am not sure.

Please help out a confusd Australian.

cheers Jason
jrf001 is offline   Reply With Quote
Old Mar 17th, 2002, 06:58 AM   #2
nisht
Board Regular
 
Join Date: Feb 2002
Location: Ahmedabad Gujarat
Posts: 303
Default

Working with the combobox is real fun for me and that was the reason i tried a populate combobox with 8 different ways you can see how the combobox can be populated by downloading "Populating Combobox" file from my download section. File nos is 16.
Now for your problem .

You download a file "Changing Combobox" from my download section. File nos is 18

It shows how your list is change as you go on selecting your data.

Write back to me if you have any more queries.

http://www.pexcel.com/download.htm
nishith desai
nisht is offline   Reply With Quote
Old Mar 17th, 2002, 07:48 AM   #3
Aladin Akyurek
MrExcel MVP
 
Aladin Akyurek's Avatar
 
Join Date: Feb 2002
Location: The Hague
Posts: 50,315
Default

Quote:
On 2002-03-17 03:35, jrf001 wrote:
HI,
I have created a combo box with 10 store names. This is situated in A1 on each sheet.There is 10 worksheets containing data for each store
I want to be able to select say the third store in the list and it will take me to that stores worksheet (was called sheet3, but its now the store name).

I am sure its got something to do with linkedcell in the properites box but I am not sure.

Please help out a confusd Australian.

cheers Jason
Jason,

What follows might approximate your situation.

Create a list of the names of the stores in a worksheet named Admin (one that requires maintenance by the WB administrator)in, say, A3:B5. A2 houses the label "STORES".

Example:

{"STORES","";
"Store1","[aaHyperlinkSheets jrf001.xls]Store1!A1";
"Store2","[aaHyperlinkSheets jrf001.xls]Store2!A1";
"Store3","[aaHyperlinkSheets jrf001.xls]Store3!A1"}

Addresses in B are not clickable URL's within the file aaHyperlinkSheets jrf001.xls. Store1 to Store3 are the sheet names that correspond to the store names.

Select the A-cells of this list (that is, A3:A5) excluding the label SLIST, go to the Name Box, type SLIST, and hit enter.

Select A3:B5, go to the Name Box, type HLINKS, and hit enter.

Create a ComboBox using Toolbars|Forms (not ControlToolbox) in a target worksheet, set its Input range to SLIST and its Cell link to, say, B4. Take care the box covers at least B4 and B5 (We don't need to see the linked cell, do we?).

In say B8 enter:

=HYPERLINK(VLOOKUP(INDEX(SLIST,B4),HLINKS,2,0),INDEX(SLIST,B4))

which gives you a clickable hyperlink that moves you to the selected sheet name.

Aladin

PS. If interested in a WB that uses the above, just drop me a line.
Aladin Akyurek is offline   Reply With Quote
Old Mar 17th, 2002, 09:39 PM   #4
jrf001
New Member
 
Join Date: Mar 2002
Posts: 19
Default

Thanks Aladin,
I am sort of a bit closer. Can I email you the file and you can see what I need help with. I followed your instructions, but I was not able to get it to work.

Please help

quote]
On 2002-03-17 06:48, Aladin Akyurek wrote:
Quote:
On 2002-03-17 03:35, jrf001 wrote:
HI,
I have created a combo box with 10 store names. This is situated in A1 on each sheet.There is 10 worksheets containing data for each store
I want to be able to select say the third store in the list and it will take me to that stores worksheet (was called sheet3, but its now the store name).

I am sure its got something to do with linkedcell in the properites box but I am not sure.

Please help out a confusd Australian.

cheers Jason
Jason,

What follows might approximate your situation.

Create a list of the names of the stores in a worksheet named Admin (one that requires maintenance by the WB administrator)in, say, A3:B5. A2 houses the label "STORES".

Example:

{"STORES","";
"Store1","[aaHyperlinkSheets jrf001.xls]Store1!A1";
"Store2","[aaHyperlinkSheets jrf001.xls]Store2!A1";
"Store3","[aaHyperlinkSheets jrf001.xls]Store3!A1"}

Addresses in B are not clickable URL's within the file aaHyperlinkSheets jrf001.xls. Store1 to Store3 are the sheet names that correspond to the store names.

Select the A-cells of this list (that is, A3:A5) excluding the label SLIST, go to the Name Box, type SLIST, and hit enter.

Select A3:B5, go to the Name Box, type HLINKS, and hit enter.

Create a ComboBox using Toolbars|Forms (not ControlToolbox) in a target worksheet, set its Input range to SLIST and its Cell link to, say, B4. Take care the box covers at least B4 and B5 (We don't need to see the linked cell, do we?).

In say B8 enter:

=HYPERLINK(VLOOKUP(INDEX(SLIST,B4),HLINKS,2,0),INDEX(SLIST,B4))

which gives you a clickable hyperlink that moves you to the selected sheet name.

Aladin

PS. If interested in a WB that uses the above, just drop me a line.
[/quote]
jrf001 is offline   Reply With Quote
Old Mar 17th, 2002, 09:47 PM   #5
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

Hi

As you have mentioned "LinkedCell" I assume you are uisng a Combobox From the "Control toolbar" (ActiveX control). If so just use:

Private Sub ComboBox1_Change()
Dim strSheet As String
If ComboBox1.ListIndex > -1 Then
strSheet = ComboBox1
Sheets(strSheet).Select
End If
End Sub

_________________
Kind Regards
Dave Hawley
OzGrid Business Applications
Microsoft Excel/VBA Training


[ This Message was edited by: Dave Hawley on 2002-03-17 20:50 ]
Dave Hawley is offline   Reply With Quote
Old Mar 17th, 2002, 09:55 PM   #6
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

I was just read the other method mentioned and it seems very Cumbersome for such a simple task. The ActiveX controls will allow far more flexiblity and even populate your with all Sheet names each time it is selected.

Private Sub ComboBox1_DropButt*******()
Dim wsSheet As Worksheet
On Error Resume Next
ComboBox1.Clear
On Error GoTo 0
For Each wsSheet In ActiveWorkbook.Worksheets
ComboBox1.AddItem wsSheet.Name
Next
End Sub


This way you dont have to bother with making combersome changes to numerous Worksheet functions every time the structure of the workbook changes.




_________________
Kind Regards
Dave Hawley
OzGrid Business Applications
Microsoft Excel/VBA Training


[ This Message was edited by: Dave Hawley on 2002-03-17 20:57 ]
Dave Hawley is offline   Reply With Quote
Old Mar 17th, 2002, 09:56 PM   #7
jrf001
New Member
 
Join Date: Mar 2002
Posts: 19
Default

I must be nearly there. Can I send you the file. Its only a small query

cheers


quote]
On 2002-03-17 20:47, Dave Hawley wrote:
Hi

As you have mentioned "LinkedCell" I assume you are uisng a Combobox From the "Control toolbar" (ActiveX control). If so just use:

Private Sub ComboBox1_Change()
Dim strSheet As String
If ComboBox1.ListIndex > -1 Then
strSheet = ComboBox1
Sheets(strSheet).Select
End If
End Sub

_________________
Kind Regards
Dave Hawley
OzGrid Business Applications
Microsoft Excel/VBA Training


[ This Message was edited by: Dave Hawley on 2002-03-17 20:50 ]
[/quote]
jrf001 is offline   Reply With Quote
Old Mar 17th, 2002, 10:05 PM   #8
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

Sure can!

davidh@ozgrid.com
Dave Hawley 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 12:12 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