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 2nd, 2002, 08:53 AM   #1
gareth
Board Regular
 
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
Default

Hello Excellers

I have this idea that is actuallygoing to be in motion soon.What I need from the friendly helpers is some kind of code that will track the changes in a worksheet and at the same time track whether or not a specific field has been used already.And if there has been an amendment for a certain customer,it will tell the user immediatly if the customer has been done already?

Is there anyone who can be of assistance to a helpless soul ?

__________________
Regards
Gareth
Visit The Excel Maniacs :<>: Have a Chat! :<>: Free Stuff!
gareth is offline   Reply With Quote
Old May 2nd, 2002, 08:55 AM   #2
gareth
Board Regular
 
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
Default

Please note that I will not be using this worksheet alone,there will be about 5 or 5 users involved guys.


__________________
Regards
Gareth
Visit The Excel Maniacs :<>: Have a Chat! :<>: Free Stuff!
gareth is offline   Reply With Quote
Old May 3rd, 2002, 04:53 AM   #3
gareth
Board Regular
 
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
Default

Is there nobody that can assist me

Thats odd hey
__________________
Regards
Gareth
Visit The Excel Maniacs :<>: Have a Chat! :<>: Free Stuff!
gareth is offline   Reply With Quote
Old May 3rd, 2002, 08:53 PM   #4
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

You didn't really give very many details there, Gareth...
Sounds like alot of hard work to me!
You can log any change you want via the worksheet and workbook events...
Just log them to a text file...
Iv'e never done it, but I'm sure it could be done...
You have lot's of fun!
TOm
Tom Schreiner is offline   Reply With Quote
Old May 5th, 2002, 11:45 PM   #5
gareth
Board Regular
 
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
Default

Thank alot Tom

It is alot of work,I started brievly with it on Saturday.I will let you know how far I get with it.If and when it works,I will share my knowledge with the board to learn from the example.
__________________
Regards
Gareth
Visit The Excel Maniacs :<>: Have a Chat! :<>: Free Stuff!
gareth is offline   Reply With Quote
Old May 5th, 2002, 11:53 PM   #6
Tom Schreiner
Board Regular
 
Join Date: Mar 2002
Location: Cincinnati, Ohio, USA
Posts: 6,824
Default

Good Deal.
I'd be interested to know how it turns out.
Thanks
Tom Schreiner is offline   Reply With Quote
Old May 6th, 2002, 01:42 AM   #7
Brian
Board Regular
 
Join Date: Apr 2002
Posts: 113
Default

I replied earlier, but somehow it did not go through.

1) Take a look at sharing workbooks (Tools > Share workbook)

2) Below is a simple code I used to flag when the latest change on a line occured. You can expand this to record every cell on a log on another sheet (or add to a string in a cell on the same row of the same sheet). Obviously, if you log from the inception of the sheet, then you can search that log to see the previous value(s) and compare it. I don't know how this would fair with multiple concurrent users (the native excel sharing is probably best for that.) But for multiple, one at a time users, you could record their name with the data.

3) You can obviously e-mail or otherwise notify users of changes. search this board for info on sending e-mails & MrExce tip#16.


Sub Worksheet_Change(ByVal Target As Excel.Range)
'2002-04-24 Created by Brian West
'2002-05-05 Modified to not run when entire row selected
'2002-05-05 Modified to not run when only col 1 selected
'With concept from Mr.Excel: http://www.mrexcel.com/tip006.shtml
'Whenever any cell on THIS SHEET changes,
'Enter the current date & time in Column A of the same row.
'NOTE: When pure text is copied from a text file and then pasted in a cell, this macro does not run!
'NOTE: This does work for copying and pasting a range of cells.

Dim c As Range

'MsgBox Target

'Exit Sub 'Exit sub while making layout changes to spreadsheet

If Target.Cells.Count < 256 Then
For Each c In Target 'Loop through each cell in the target range.
If c.Columns.Count = 1 And c.Column = 1 Then
'skip because only changed the date in A (probably tried to clear it)
Else
ThisRow = c.Row
Range("A" & ThisRow) = Format(Now, "yyyy-mm-dd") 'Enter today's date as text in column A
ActiveSheet.Range("A" & ThisRow).Rows.Calculate 'caclulate this row only
ActiveSheet.Range("C" & ThisRow).Calculate 'caclulate this cell only For some unknown reason this was not calculating based on only the previous line
'MsgBox "Should Calc This Row"
End If
Next c
End If

'Supplied Code From Mr.Excel:
'Run this macro whenever a cell changes
' If Target.Column = 1 Then
' ThisRow = Target.Row
' If Target.Value > 100 Then
' Range("B" & ThisRow).Interior.ColorIndex = 3
' Else
' Range("B" & ThisRow).Interior.ColorIndex = xlColorIndexNone
' End If
' End If

'ALTERNATE FROM MS EXCEL HELP FILE:
'Occurs when cells in any worksheet are changed by the user or by an external link.
'Private Sub object_SheetChange(ByVal Sh As Object, ByVal Source As Range)
'object Application or Workbook. For more information about using events with the Application object, see Using Events with the Application Object.
'Sh A Worksheet object that represents the sheet.
'Source The changed range.

End Sub
Brian is offline   Reply With Quote
Old May 6th, 2002, 01:54 AM   #8
gareth
Board Regular
 
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
Default

Thanks Brian

I will check If it works for me.

Tom,let me know what you think about it.
__________________
Regards
Gareth
Visit The Excel Maniacs :<>: Have a Chat! :<>: Free Stuff!
gareth is offline   Reply With Quote
Old May 6th, 2002, 05:38 AM   #9
gareth
Board Regular
 
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
Default

Its works,

But it is still not I wanted to create.


__________________
Regards
Gareth
Visit The Excel Maniacs :<>: Have a Chat! :<>: Free Stuff!
gareth is offline   Reply With Quote
Old May 13th, 2002, 11:54 PM   #10
gareth
Board Regular
 
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
Default

Are there any new ideas on this one.?
__________________
Regards
Gareth
Visit The Excel Maniacs :<>: Have a Chat! :<>: Free Stuff!
gareth 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 05:28 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