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 Feb 26th, 2002, 01:10 PM   #1
Barry Katcher
Board Regular
 
Barry Katcher's Avatar
 
Join Date: Feb 2002
Location: Dog Beach, Florida. Yeaahh!
Posts: 4,038
Default

I posted this twice on the old board and didn't get any response. I really need help with this. Thanx in advance.

I have a summary workbook that is linked to twenty departmental budget workbooks It combines all their info into a company-wide consolidation. All the individual workbooks are password protected with different passwords

The problem is that every time I open the summary w/b, I have to manually input all twenty passwords, one after the other. If I just click "o.k." or "cancel" in the password boxes, the workbook opens, but any change in data in the departmental w/b's is not refreshed on the summary w/b.

I tried writing a macro to open the w/b and input the passwords, but that part of the macro pertaining to passwords was not recorded.

Can anyone help with an opening macro? Thanx in advance.



Barry Katcher is offline   Reply With Quote
Old Feb 26th, 2002, 01:24 PM   #2
gplhl
Board Regular
 
Join Date: Feb 2002
Location: Chippenham, UK
Posts: 136
Default

Quote:
On 2002-02-26 12:10, Barry Katcher wrote:
I posted this twice on the old board and didn't get any response. I really need help with this. Thanx in advance.

I have a summary workbook that is linked to twenty departmental budget workbooks It combines all their info into a company-wide consolidation. All the individual workbooks are password protected with different passwords

The problem is that every time I open the summary w/b, I have to manually input all twenty passwords, one after the other. If I just click "o.k." or "cancel" in the password boxes, the workbook opens, but any change in data in the departmental w/b's is not refreshed on the summary w/b.

I tried writing a macro to open the w/b and input the passwords, but that part of the macro pertaining to passwords was not recorded.

Can anyone help with an opening macro? Thanx in advance.
Try this:

Sub OpenPassword()
' Password protect the module you put this code in.
Workbooks.Open Filename:="C:file1.xls", Password:="mypassword1"
Workbooks.Open Filename:="C:file2.xls", Password:="mypassword2"
' And so on

End Sub


Word of advice though, password protect the project you put this into otherwise other people could look at the code and get the passwords.

Regards,

Gary Hewitt-Long
gplhl is offline   Reply With Quote
Old Feb 26th, 2002, 01:39 PM   #3
Barry Katcher
Board Regular
 
Barry Katcher's Avatar
 
Join Date: Feb 2002
Location: Dog Beach, Florida. Yeaahh!
Posts: 4,038
Default

Thanks, Gary
Barry Katcher is offline   Reply With Quote
Old Feb 26th, 2002, 02:35 PM   #4
Barry Katcher
Board Regular
 
Barry Katcher's Avatar
 
Join Date: Feb 2002
Location: Dog Beach, Florida. Yeaahh!
Posts: 4,038
Default

Quote:
On 2002-02-26 12:39, Barry Katcher wrote:
Thanks, Gary
Barry Katcher is offline   Reply With Quote
Old Jun 26th, 2002, 04:15 PM   #5
simonf
Board Regular
 
Join Date: Jun 2002
Posts: 207
Default

Hi, Barry. I also need to do the same kind of consolidation but the different workbooks are not protected. How did you performed the consolidation? Basically the columns on each workbook are: dept, project, module, cost catagory, Q1, Q2, Q3, Q4, Total. Each workbook is a different department. They are all identical in their layouts. Do I need to click on each cell in the summary workbook to set the Data/Consolidation and map to each of the corresponding cell of the various workbooks? Thanks much.
simonf is offline   Reply With Quote
Old Jun 27th, 2002, 06:28 AM   #6
Barry Katcher
Board Regular
 
Barry Katcher's Avatar
 
Join Date: Feb 2002
Location: Dog Beach, Florida. Yeaahh!
Posts: 4,038
Default

Simonf
Assuming, as you say, all the spreadsheets, including the consolidation sheet, are in the exact same format (same # of rows & columns and same data in each corresponding cell), then you just have to enter one long formula, in the consolidation sheet, in the first cell that contains data. Assume that to be cell A1.

=[Book1]Sheet1!$A$1+[Book2]Sheet1!$A$1+etc., etc., etc.

You can enter this manually in the cell or you can open the workbooks and point to the cell in each.

After you have this one cell, just copy down and then to the right.
__________________
Barry-

Photo Restoration/Enhancement

http://www.smiledogproductions.com
click below for detour

Barry Katcher is offline   Reply With Quote
Old Jun 27th, 2002, 11:50 AM   #7
simonf
Board Regular
 
Join Date: Jun 2002
Posts: 207
Default

Hi, actually just the column headings are the same. The data are different.
simonf is offline   Reply With Quote
Old Jun 27th, 2002, 01:39 PM   #8
Barry Katcher
Board Regular
 
Barry Katcher's Avatar
 
Join Date: Feb 2002
Location: Dog Beach, Florida. Yeaahh!
Posts: 4,038
Default

Sorry, I was unclear. When I said "the same data..." what I meant was "the same type of data...". If, for example, cell F20 in worksheet 1 (or workbook 1) has column heading of "Annual Budget", and row heading of "Supplies", do these headings apply to all of your worksheets (books) for each of their cells F20? If so, the sheets (books) are identical and the formula can be used. Of course, the actual numerical data for each sheet would be different.
Barry Katcher 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 06:22 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