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 7th, 2002, 05:43 AM   #1
vvershas
New Member
 
Join Date: Apr 2002
Location: Australia
Posts: 20
Default

hello,
I need to copy and paste a range of data whenever a particular cell's value changes. this particular cell is updated by an external link. I've played around with the change and the calculate event. The change event will only work if I update the cell and click out of it.
I also need this range of data to go to the next column each time the cell is updated so that i can compare changes since the previous update.
any help would be very appreciated
vvershas is offline   Reply With Quote
Old Apr 7th, 2002, 06:46 AM   #2
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

Hi
You can accomplish this via the calculate event. I wrote a trade tracking program for several people which tracks prices and volume changed and automatically records changes on the next row/column. If you'd like, I'll send it to you. Is an Excel spreadsheet. Maybe the source code can help you out a bit.
Tom
Tom Schreiner is offline   Reply With Quote
Old Apr 7th, 2002, 07:50 AM   #3
vvershas
New Member
 
Join Date: Apr 2002
Location: Australia
Posts: 20
Default

Hi Tom,
Thanks for the info. Your spreadsheet sounds ideal so please do send it. The spreadsheet I'm working on analyses tote betting from a terminal session so it's very similar to stock analysis.

Cheers
Shaun
vvershas is offline   Reply With Quote
Old Apr 7th, 2002, 08:27 AM   #4
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

I'll need an E-Mail address. If you do not want to post it here, then E-Mail me
TsTom@hotmail.com
Tom
Tom Schreiner is offline   Reply With Quote
Old Apr 7th, 2002, 06:58 PM   #5
vvershas
New Member
 
Join Date: Apr 2002
Location: Australia
Posts: 20
Default

thanks Tom
the calculate event seems to be for in the event of any cell in the sheet recalculating. how can I set it so that it is in the event of only 1 particular cell recalculating?

cheers
vvershas is offline   Reply With Quote
Old Apr 7th, 2002, 07:16 PM   #6
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

Hi
I suppose you may have to work around this by reserving one sheet to be the sole reciever of your query updates. I'm not sure exactly what your are doing so it is quite difficult for me to understand how I might help you. The sheet I sent you recieves updates for four items. Time, Date, Price, and volume. I attempted to capture the changes for Price and volume only.
You may need to store a previous value and then compare it to the new value, if any, to detect a change in the cells in which your query are concerned.
I believe that is how I did it.
If you really get stuck, send me a sample stream of your data and I will try and figure it out. As you can see by my code, I am no expert, but it does work for the purpose that I created it for. At least that's what I'm told.
Tom

[ This Message was edited by: TsTom on 2002-04-07 18:18 ]
Tom Schreiner is offline   Reply With Quote
Old Apr 7th, 2002, 07:17 PM   #7
vvershas
New Member
 
Join Date: Apr 2002
Location: Australia
Posts: 20
Default

Tom,

I'll re phrase that last question,
all examples i have seen are in the case of a cell having a particular value.
I need to invoke a sub if the cell changes to any new value. (in my case, an update in the win pool on the tote)

cheers
vvershas is offline   Reply With Quote
Old Apr 7th, 2002, 07:21 PM   #8
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

I edited my former reply.
The workbook I sent you captures the link change via the calculation event. Because I know of no way to determine which cells provoked the event, I store the previous value from the link, compare it to the new, if any, and then run my code from there.
So it does not really matter which cell caused the event to fire off. It only matters that the values we are concerned with have changed or not.
Do you understand?
Tom
Tom Schreiner is offline   Reply With Quote
Old Apr 7th, 2002, 07:24 PM   #9
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

The workbook I sent you is based soley upon changing values. If a price or volume changes then the code sends the new values, along with the date and time, to a new line/row. This seems to be what you are after?
Tom Schreiner is offline   Reply With Quote
Old Apr 7th, 2002, 07:25 PM   #10
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

I have to go.
Please read the above and If you'd like, send me some sample data from your stream.
Thanks
Tom
TsTom@hotmail.com
Tom Schreiner 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:52 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