#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Help with decision

I want to create something that will track the ammount of files that are
received by employees. It needs to be perpetual. I am not sure how to do
this. Please advise.

Thanks
Drock-13
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Help with decision

Assume that you know whenever an employee receives a file.

list the employee names in column A

Enter the following macro in the worksheet code area:

Private Sub Worksheet_Change(ByVal Target As Range)
Set r = Range("B:B")
If Intersect(Target, r) Is Nothing Then Exit Sub
Application.EnableEvents = False
Set t = Target.Offset(0, 1)
t.Value = t.Value + Target.Value
Application.EnableEvents = True
End Sub

just enter the number of files received in column B. Column C will
automatically update with the new accumulated value.

For example Joe is row 1. Joe receives 3 files. You type 3 in cell B1 and
cell C1 automatically becomes 3. Tomorrow Joe receives 16 more files. You
type 16 in cell B1 and cell C1 updates automatically to 19.


It is perpetual because it only uses 3 columns.
--
Gary''s Student - gsnu200747


"smeldawg" wrote:

I want to create something that will track the ammount of files that are
received by employees. It needs to be perpetual. I am not sure how to do
this. Please advise.

Thanks
Drock-13

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Decision Tree Template or Plug In Holly OK Excel Discussion (Misc queries) 3 February 10th 12 07:08 AM
Decision Tree Add-In? Lon Excel Worksheet Functions 4 February 10th 12 06:52 AM
Automate a complex decision structure Marianne Excel Worksheet Functions 0 January 23rd 06 11:59 PM
making a decision tree using excel! andrew h via OfficeKB.com Excel Discussion (Misc queries) 1 September 7th 05 02:54 PM
How to I make a decision using excel? Kayte Excel Discussion (Misc queries) 1 December 15th 04 07:39 AM


All times are GMT +1. The time now is 10:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"