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 May 21st, 2002, 06:32 AM   #1
tealeaf
Board Regular
 
Join Date: May 2002
Location: mtl, canada
Posts: 160
Default

i know it`s possible to graph a pivot table on a histogram graph (the one with bars) but i was wondering if it`s possible to graph the pivot table using VBA for a scatter graph (the one with just points, no lines connecting them)
tealeaf is offline   Reply With Quote
Old May 21st, 2002, 06:33 AM   #2
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-21 05:32, tealeaf wrote:
i know it`s possible to graph a pivot table on a histogram graph (the one with bars) but i was wondering if it`s possible to graph the pivot table using VBA for a scatter graph (the one with just points, no lines connecting them)
Why do you want to use VBA?
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 21st, 2002, 06:36 AM   #3
tealeaf
Board Regular
 
Join Date: May 2002
Location: mtl, canada
Posts: 160
Default

well it`s part of a program which retrieves data from a database and then puts it in a pivot table then graphs the pivot table. if it`s possible without vba that`s cool too i guess.
tealeaf is offline   Reply With Quote
Old May 21st, 2002, 06:41 AM   #4
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-21 05:36, tealeaf wrote:
well it`s part of a program which retrieves data from a database and then puts it in a pivot table then graphs the pivot table. if it`s possible without vba that`s cool too i guess.
I haven't used Scatter charts but you might like to use Dynamic Ranges to adjust the Data Ranges.

Look at:

http://www.mrexcel.com/board/viewtop...c=8379&forum=2

and

http://www.mrexcel.com/board/viewtop...c=8969&forum=2

Should get you started, I use this technique to Dynamically polt Column/Bar charts from a PivotTable that I Hide/Unhide items on.

If you need any more let me know.
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 21st, 2002, 07:24 AM   #5
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-21 05:41, Ian Mac wrote:
Quote:
On 2002-05-21 05:36, tealeaf wrote:
well it`s part of a program which retrieves data from a database and then puts it in a pivot table then graphs the pivot table. if it`s possible without vba that`s cool too i guess.
I haven't used Scatter charts but you might like to use Dynamic Ranges to adjust the Data Ranges.

Look at:

http://www.mrexcel.com/board/viewtop...c=8379&forum=2

and

http://www.mrexcel.com/board/viewtop...c=8969&forum=2

Should get you started, I use this technique to Dynamically polt Column/Bar charts from a PivotTable that I Hide/Unhide items on.

If you need any more let me know.
I don't understand what you mean by 'But my boss wants it done this way'? (other thread)

The solutions here can be expanded to meet your bosses requirements, if you let me know what you need. there is no VBA involved so which way does your boss want it done?

I assume your using Excel 97, otherwise you could've used Pivot Charts. Other than the way I propose I can't think of a way to Dynamically adjust a chart to a Pivot Table.
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 21st, 2002, 07:29 AM   #6
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

tealeaf

I'll continue with this thread, if it's all the same to you.

Check out the second one a proposed and come back to this thread with any questions, I've explain a little on that link about NamedRanges.

Don't worry we'll get this one licked yet.
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 21st, 2002, 08:14 AM   #7
tealeaf
Board Regular
 
Join Date: May 2002
Location: mtl, canada
Posts: 160
Default

Quote:
On 2002-05-21 06:29, Ian Mac wrote:
tealeaf

I'll continue with this thread, if it's all the same to you.

Check out the second one a proposed and come back to this thread with any questions, I've explain a little on that link about NamedRanges.

Don't worry we'll get this one licked yet.
cute.
i tried ur second suggestion though i`m not sure what COUNTA is. also i`m getting an error when i type that code in the box (=OFFSET...)
it could be a typo but it could also be that i have Excel in French... i`m not sure yet.
teal
tealeaf is offline   Reply With Quote
Old May 21st, 2002, 08:26 AM   #8
tealeaf
Board Regular
 
Join Date: May 2002
Location: mtl, canada
Posts: 160
Default

ok well right now, i have my graph done, and when i do an update and retrieve stuff from the database, my pivot table is updated just fine. using
Selection.QueryTable.Refresh BackgroundQuery:=False
however, the only way to get the graph to update so far is to hit save...kinda dumb no? i'm sure ur suggestions both work, but i don't get 'em...help? sorry.
tealeaf is offline   Reply With Quote
Old May 21st, 2002, 08:51 AM   #9
Ian Mac
MrExcel MVP
 
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
Default

Quote:
On 2002-05-21 07:26, tealeaf wrote:
ok well right now, i have my graph done, and when i do an update and retrieve stuff from the database, my pivot table is updated just fine. using
Selection.QueryTable.Refresh BackgroundQuery:=False
however, the only way to get the graph to update so far is to hit save...kinda dumb no? i'm sure ur suggestions both work, but i don't get 'em...help? sorry.
I've mailed you an example.
__________________
"Have a good time......all the time"
Ian Mac
Ian Mac is offline   Reply With Quote
Old May 21st, 2002, 09:02 AM   #10
tealeaf
Board Regular
 
Join Date: May 2002
Location: mtl, canada
Posts: 160
Default

i just checked my email, that was really sweet of u. i'm reading it now. thanks in advance.
tealeaf 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 03:15 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