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 27th, 2002, 08:44 PM   #1
kojak43
Board Regular
 
kojak43's Avatar
 
Join Date: Feb 2002
Posts: 270
Default

I would like to have a worksheet to hold data. The fields would run from A:Q.
Once data is entered in the initial worksheet, I would like certain fields from that data worksheet, to populate a second and a third worksheet. Those next two sheets would be formatted to produce a report and a pivot table.

I can do much of the formatting for sheets 2 and 3, but do not have the ability to write the necessary code to fill the 2nd and 3rd sheets.

The field headers in sheets 2/3 would mirror header in sheet 1.

I tried to search previous posts to get some direction for this, but could not figure out a successful term to ge the search to work.

I am reasonably confident this can be done, I'm just not experienced enough to do this.

Any help is appreciated.
K

kojak43 is offline   Reply With Quote
Old Mar 27th, 2002, 08:49 PM   #2
Yogi Anand
MrExcel MVP
 
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
Default

hi kojak43:
Let us say you have an entry kojak in cell A1 of Worksheet Sheet1
Now if you want to have the same entry in cell A1 of Worksheet Sheet2
Then in cell a1 of Sheet2 you will enter

=Sheet1!A1

I hope I have understood you right and not trivialized you request.

Please post back if this is what you intended ... otherwise explain a little further and let us take it from there!
__________________
Regards!

Yogi Anand, D.Eng, P.E.
Energy Efficient Building Network LLC
www.energyefficientbuild.com
Yogi Anand is offline   Reply With Quote
Old Mar 27th, 2002, 11:56 PM   #3
Dave Patton
Board Regular
 
Join Date: Feb 2002
Location: Calgary, Alberta Canada
Posts: 2,065
Default


A few questions:

- must you have sub sheets?
* do advantages outweigh the disadvantages?

- is it necessary to replicate the data?

- have your considered scenarios, hiding columns, pivot tables, data filters ...?
It may be easier to prepare the following from one main sheet of information
* prepare summary reports
* prepare custom reports
Dave Patton is offline   Reply With Quote
Old Mar 28th, 2002, 12:07 AM   #4
Dave Hawley
Banned
 
Join Date: Feb 2002
Posts: 1,582
Default

Hi


On the sheet you wish to enter your data, right click on the sheet name tab, select "view Code" and paste in this


Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("A2:Q2000")) Is Nothing Then
Sheets("Sheet2").Range(Target.Address) = Target
Sheets("Sheet3").Range(Target.Address) = Target
End If
End Sub


From now on whenever you enter any data on this sheet it within the range "A2:Q1000" it will be automatically mirrored on sheet2 and 3

Dave Hawley is offline   Reply With Quote
Old Mar 28th, 2002, 08:21 AM   #5
kojak43
Board Regular
 
kojak43's Avatar
 
Join Date: Feb 2002
Posts: 270
Default

Thanks for your answers:
Yogi Anand:
I assumed I would have to something reasonably work intensive to accomplish what I wanted. And your response was what I thought I would have to use.
However, both Dave's answers might provide a different way.
Dave Patton:
I am not sure I can answer your questions as I do not know what Summary Reports or Custom Reports are. They could be the answer. I tried to find out what they were in a search of MrExcel - no joy. I even went as far as M.S. Excel (shutter) Help. - no joy.
If I can learn to create the reports, and then just turn it over to the user that inputs data, and have her press a key and the report appears,that would work. However, if she has to do anything more, it will not work. (it is sort of like the blind leading the halt around here.)
Dave Hawley:
The reason I wanted to use different worksheets was I assumed I could format the subsequent worksheets into the two reports I wanted.
Your code would work if I needed to use contiguous cells. Worksheet 2 might use A,B,C,F,H,& Q. Worksheet 3 might use A,B,C,D,E,G,I,K,J,L & M
That jumping around cells leaves me, and my Excel talent, out in the cold.
kojak43 is offline   Reply With Quote
Old Mar 28th, 2002, 04:13 PM   #6
DorenM
New Member
 
Join Date: Mar 2002
Posts: 3
Default

Hello!

Was just wondering if the info. on sheets 2 and 3 is a filtered sub-set of the first sheet? If so, record a macro to filter the first sheet based on whatever criteria you need, and then copy and paste the filtered records to the other two sheets. Or create a macro that uses Advanced Filter to filter the records and then copy them to the other sheets as needed.

HTH's or gets you started in the right direction!
D.
DorenM is offline   Reply With Quote
Old Apr 1st, 2002, 02:15 PM   #7
kojak43
Board Regular
 
kojak43's Avatar
 
Join Date: Feb 2002
Posts: 270
Default

Dave Patton:
I am not sure I can answer your questions as I do not know what Summary or Custom Reports are. They could be the answer. I tried to find out what they were in a search of MrExcel - no joy. I even went as far as M.S. Excel (shutter) Help. - no help.
If I can learn to create the reports, and then just turn it over to the user that inputs data, and have her press a key and the report appears,that would work. However, if she has to do anything more, it will not work. (it is sort of like the blind (me) leading the halt (her) around here.)

kojak43 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 02:03 PM.


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