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 20th, 2002, 03:03 PM   #1
webking
New Member
 
Join Date: Mar 2002
Posts: 21
Default

I have an excel sheet on which i have made different sections containing information about sales , expenses , store etc..Now each section has a Heading showing what that section is for.
But the sections are so manay that it becomes confusing finding the rite section for data entry.
Is it possible that some how i can make Button of each Heading at the start of the sheet which can enable the user to just click the button and he is at the desired section. Like if suppose the Expenses heading is in Cell AA11 the button should be such that when we click the button it takes the user on that cell.
Also there has to be a button which takes the user back to the cells where all the buttons of different sections are present.
Please guide me steps wise.
Thankyou.
webking is offline   Reply With Quote
Old Mar 20th, 2002, 03:17 PM   #2
lenze
MrExcel MVP
 
lenze's Avatar
 
Join Date: Feb 2002
Location: Helena, MT
Posts: 13,690
Default

The easiest way is to assign a Named Range to each place you want to go. Then place Command Buttons on the sheet from the CONTROL BOX TOOLBAR. You may then assign a hyperlink to each button (Insert Hyperlink)
lenze is offline   Reply With Quote
Old Mar 20th, 2002, 03:19 PM   #3
SamS
Board Regular
 
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
Default

I have sometmes used this method successfully - set your headings as range names and then create hyperlinks to them (Insert - hyperlinks) and in reverse also.
SamS is offline   Reply With Quote
Old Mar 20th, 2002, 03:44 PM   #4
SamS
Board Regular
 
Join Date: Feb 2002
Location: Brisbane, Down Under
Posts: 533
Default

Quote:
On 2002-03-20 14:19, SamS wrote:
I have sometmes used this method successfully - set your headings as range names and then create hyperlinks to them (Insert - hyperlinks) and in reverse also.
unless you have vba code attached to the buttons, there is no need for them, just highlite the text (remember to give them a range name so you can navugate back to them) and use the hyperlink, as the rangename acts as a bookmark.
SamS is offline   Reply With Quote
Old Mar 20th, 2002, 04:39 PM   #5
webking
New Member
 
Join Date: Mar 2002
Posts: 21
Default

Thankyou for your replies but
your method is not working. like i want to have a excel sheet which when i open shows the following:-

1) In Cell A1 to A6 it shows Buttons which when pressed takes the user to the desired heading present on the sheet.

it like creating a button on an excel sheet in cell A1 which is when pressed takes the user to say Cell H1.

can we do this in excel.
webking is offline   Reply With Quote
Old Mar 20th, 2002, 04:55 PM   #6
Al Chara
MrExcel MVP
 
Join Date: Feb 2002
Location: Monterrey, Mexico
Posts: 1,433
Default

Put the following code in the code for the sheet that contains your button:

Private Sub CommandButton1_Click()
[h1].Select
End Sub

Repeat as necessary for the number of buttons that you have.
__________________
Kind regards,

Al Chara
Al Chara is offline   Reply With Quote
Old Mar 20th, 2002, 07:01 PM   #7
Jay Petrulis
MrExcel MVP
 
Jay Petrulis's Avatar
 
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
Default

Hi WebKing,

You can achieve what you want without buttons by using an event macro.

In the sheet module place something like the following:

---begin VBA---
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
If Target.Column = 1 Then
If Target.Row = 1 Then Range("H1").Select
If Target.Row = 2 Then Range("H2").Select
If Target.Row = 3 Then Range("H3").Select
If Target.Row = 4 Then Range("H4").Select
If Target.Row = 5 Then Range("H5").Select
If Target.Row = 6 Then Range("H6").Select
End If

End Sub
---end VBA---

Double clicking on A1:A6 maps to H1:H6. You can still have data, formulae, etc. in the cells, too.

HTH,
Jay


Bye,
Jay
Jay Petrulis is offline   Reply With Quote
Old Mar 21st, 2002, 08:53 AM   #8
cjones88
New Member
 
Join Date: Mar 2002
Location: Atlanta
Posts: 23
Default

I made a similar spreadsheet. At the top all it has is buttons. You click on the button, then it takes you to the point where you would enter the data. When you are done entering, you click on a button that says either "Home" or "Next". Home naturally takes you to the start of the sheet, and Next takes you to wherever place on the sheet you want to go to is. This is a little time consuming because you have to make a macro for each location that you want to go to, but because I use this thing all day everyday, it makes life much easier.

To do it, first you have to record a macro. Once you hit record, move your scrollbars until you see the window you want for your first data area. Then adjust the zoom to your desired level (remember if others are using this they could have different screen resolutions, so be careful here), then stop the recording. Assign this macro to a control button at the top of your page and repeat as necessary for all of your areas. Make sure you make a Home button in all of your data areas so there is an easy way to get back to the start. Hope this helps.
cjones88 is offline   Reply With Quote
Old Mar 21st, 2002, 10:43 AM   #9
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

easier on the eyes....

---begin VBA---
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
If Target.Column = 1 Then

For i =1 to 6 step 1 then
If Target.Row = i Then Cell(i, "H").Select
Next i

End If

End Sub
---end VBA---


[ This Message was edited by: RET79 on 2002-03-21 09:44 ]
RET79 is offline   Reply With Quote
Old Mar 21st, 2002, 12:12 PM   #10
KniteMare
Board Regular
 
Join Date: Mar 2002
Location: Hilo, Hawaii
Posts: 240
Default

RET79, nice tight code but like this

Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
If Target.Column = 1 Then

For i = 1 To 6 Step 1
If Target.Row = i Then Cells(i, "H").Select
Next i

End If

End Sub

Yours in EXCELent Frustration
KniteMare

[ This Message was edited by: KniteMare on 2002-03-21 11:13 ]
KniteMare 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:23 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