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 15th, 2002, 10:09 PM   #1
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

Hi.

I am currently trying to do ambtitious things with some data I get from the IT department at work. I will try and explain the steps involved in what I am trying to do:

1. We get the data in text files. I have created this macro that will allow me to open the data in excel in the format I want, so no problems here.

2. The data consists of around 15 columns. I need to add in a few extra columns with formulas to create new data columns based on the original data. so I end up with say 20 columns overall - 15 original and 5 manufactured.

3. The next step involves summarising all columns of the data to get subtotals etc. So, there is a couple of pivot tables on other sheets doing this.

4. This stage involves reading off the data from the pivot tables onto the sheets where we will be presenting the data. We are only interested in extracting the summarised data from the pivot tables. This makes use of the GETPIVOTDATA function. The data should now be presented in the forms as required.

OK, so what am I asking? Well, ideally, I want all of this combined into a SINGLE macro. Crazy? Oh yes I am.

I wonder if anyone has had similar big jobs to do. For next year's data I hope to have a system set up where by I can just get the text file from IT dept, then click a macro and ALL of this is done in one go.

Ambitious really isn't it, but I am convinced it can be done. But for it to be effective it will take a lot of clever, conscise programming and setting up I think.
Any advice or comments appreciated.

RET79

RET79 is offline   Reply With Quote
Old Apr 15th, 2002, 10:42 PM   #2
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

So, it's effectively:

textfile -> into excel -> add calculated columns -> put into pivot tables to summarise -> getpivotdata into presentation s'sheet.


This is a BIG job, but a macro could do it in one I suspect. Any advice appreciated.

RET79
RET79 is offline   Reply With Quote
Old Apr 15th, 2002, 11:55 PM   #3
Ricky Morris
Board Regular
 
Join Date: Mar 2002
Posts: 363
Default

It can be done. You might want to continue by recording your actions with the macro recorder, cleaning up and modifying the code, then come back here and ask specific questions as they come up along the way.

__________________
It's never too late to learn something new.

Ricky
Ricky Morris is offline   Reply With Quote
Old Apr 20th, 2002, 07:59 AM   #4
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

Hi again.

Yes, this big job is getting near the finishing line.

I have a macro now which will, subject to inputs (which the user will enter on 2 special sheets), take the data from the text file, open it in the correct excel format, add calculated columns then throw the whole thing into pivot tables. Let's call this stage B.

Now, I have discovered that there are 4 text files which need to go through this process, each with a different set of inputs, each ending up with its own pivot table. Stage C will involve about 8 different spreadsheets (which can't be grouped together as one for various reasons) reading off the data from these 4 created pivot tables as required.

I want this whole job compressed to the minimum in terms of how many files required and how many steps required as I want to convince my boss that this route will be easier and less error prone than our current method (which is the laborious printing out of these huge text files and doing data entry with the final spreadsheets - how crap).

I am thinking that maybe I need a special folder, containing the 4 text files, then set up instructions to a macro to create pivot tables based on these 4 files based on 4 different set of inputs. I am thinking that this may required 4 different stageB files.

The main thing I am worried about is that the macro may be doing too many steps at once if I get it to do everything. The trouble at work is that some people think they know the lot about excel and will therefore find it difficult not to tamper with things like cells, renaming worksheets, renaming files etc. that will completely stop the macro from working. Would it perhaps be better to have a macro at each stage instead of an overall one? If anyone has any experience of doing this sort of thing any sort of advice would be appreciated.

Does anyone have any comments about this whole thing I am trying to do? If so it would be welcomed. I will receive a frosty reception if I claim that I can get a job done with a click of a button which used to take months of data entry, and I don't want my case to be a failure becuase of the fact that the macro was not prepared for tampering of the system in place by users.

Thanks.

RET79
RET79 is offline   Reply With Quote
Old Apr 20th, 2002, 08:01 AM   #5
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

How easy is it to set up a wizard thing on excel? I want to make this whole thing work as easy as possible for the user and give them as little freedom as they should have to mess about with things.
For instance, a wizard might guide them through every step of the way, asking them which text file they wish to use, allowing them to fill in the required inputs etc, before calculating anything. This would be more effective I feel than me writing out instructions on word as some people think they know the lot and do things without reading instructions, this could seriously mess up the whole process.

Thanks.

[ This Message was edited by: RET79 on 2002-04-20 07:04 ]
RET79 is offline   Reply With Quote
Old Apr 20th, 2002, 08:10 AM   #6
RET79
Board Regular
 
Join Date: Mar 2002
Location: England, UK.
Posts: 526
Default

Or has anyone got any cool macros available that would ensure that only the inputted cells would be available to be tampered with by an user? (However, these inputs ranges have been defined as dynamic ranges by the macro more often than not)

I dont know much about addins either, could this be a way?

Essentially, I just want user to start a wizard type thing, select their text file, put their inputs in, then the wizard would do step B and churn out a pivot table somewhere which could be read by the spreadsheets automatically (the spreadsheets are already set up vastly with GETPIVOTDATA functions).

I would rather the input stage was done within a wizard thing if possible, how one sets this up I have no idea, but letting an user not familiar with how the macro works seems to be asking for trouble.

Gosh, I am starting to repeat myself, I do apologise.

RET79
RET79 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:06 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