Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 290
Default Notification

Hi all,

I am stumped as to how you would get some form of notification when
something is added to a 'master' spreadsheet.

If many people were using this spreadsheet and adding a row of
information (an entry), each entry having a unique identifiable number
in column A, how would you get something out once a day which said
"number, number, and number have been added" taking the numbers from
column A for each new entry?

Is this possible? i am thinking perhaps an email, or populating a
report, or any form really perhaps even printed but reliable so ones
that were added were not missed.

So for instance,
Darren would use the sheet from 9 til 12 adding entries,
Duncan would use the sheet from 12 til 3 adding entries.
at 4 o clock an email/printout/report would come from somewhere and get

given to Jon who would then know what new entries had been added.

Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Notification

Duncan,
Is it possible to date/time stamp entries in a "spare"
column and are all entries new or can there be updates to existing entries?

You could use the "Worksheet_Change" event to monitor changes and record
new additions by matching the unique ID against existing ones; if not matched
then it must be new.



"Duncan" wrote:

Hi all,

I am stumped as to how you would get some form of notification when
something is added to a 'master' spreadsheet.

If many people were using this spreadsheet and adding a row of
information (an entry), each entry having a unique identifiable number
in column A, how would you get something out once a day which said
"number, number, and number have been added" taking the numbers from
column A for each new entry?

Is this possible? i am thinking perhaps an email, or populating a
report, or any form really perhaps even printed but reliable so ones
that were added were not missed.

So for instance,
Darren would use the sheet from 9 til 12 adding entries,
Duncan would use the sheet from 12 til 3 adding entries.
at 4 o clock an email/printout/report would come from somewhere and get

given to Jon who would then know what new entries had been added.

Any ideas?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 290
Default Notification

Toppers,

For this gain all additions will be new, but if i can get something
working then each 'record' will be have three actions (this first one
for it being added being one of those three)

I have free rein on the spreadsheet so i can add collumns if i need so
that is not a problem, the hardest part for me is working out how to
structure the code that compares the entries as you have suggested
against ones already on. I just think there must be something within
excel that would near fit my purpose! its so frustrating knowing what
you want but not how to get it.

I have been playing with the track changes feature in excel today and
looking at the 'history' which it populates to a new sheet, I am trying
to work out if i can get a macro to automate the production of this
'history' sheet which shows all changes made and for the macro to
analyse the sheet and come back with the new additions. just a lot to
work out really and hoping for a miracle!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Notification

Duncan,
Try this as a starter:

HTH

Private Sub Worksheet_Change(ByVal Target As Range)

On Error GoTo exitsub
Application.EnableEvents = False

If Target.Count 1 Then Exit Sub ' more then one cell selected ..

Set ws2 = Worksheets("sheet2") ' record of updates is on this sheet

Set isect = Application.Intersect(Target, Range("A:A"))

If Not isect Is Nothing Then
' look for match in column A ....
res = Application.Match(Target.Value, Range("A:A"), 0)
If Not IsError(res) Then ' no match so must be new value
' update tracking details ...e.g. worksheet to record to key &
date time
MsgBox Target.Value & " has been added to file on " & Now()
nextrow = ws2.Cells(Rows.Count, 1).End(xlUp).Row + 1
ws2.Range("a" & nextrow) = Target.Value
ws2.Range("b" & nextrow).End(xlUp)(2) = Now()
End If
End If
exitsub:
Application.EnableEvents = True
End Sub
"Duncan" wrote:

Toppers,

For this gain all additions will be new, but if i can get something
working then each 'record' will be have three actions (this first one
for it being added being one of those three)

I have free rein on the spreadsheet so i can add collumns if i need so
that is not a problem, the hardest part for me is working out how to
structure the code that compares the entries as you have suggested
against ones already on. I just think there must be something within
excel that would near fit my purpose! its so frustrating knowing what
you want but not how to get it.

I have been playing with the track changes feature in excel today and
looking at the 'history' which it populates to a new sheet, I am trying
to work out if i can get a macro to automate the production of this
'history' sheet which shows all changes made and for the macro to
analyse the sheet and come back with the new additions. just a lot to
work out really and hoping for a miracle!


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 290
Default Notification

Toppers, You are smashing.

This worked with no fiddling (except to move 'date time' onto its
proper remmed line but thats a fault of the google message box!)
I will experiment further with this and see how far i can go with it.

Many sincere thanks,

Duncan

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
Notification Ron100 Excel Discussion (Misc queries) 1 January 12th 10 07:18 PM
color notification reza Excel Discussion (Misc queries) 2 August 13th 09 09:34 AM
Notification when file changes Don B Excel Worksheet Functions 0 May 15th 08 03:43 PM
Notification Dave Excel Worksheet Functions 3 April 24th 08 10:53 PM
Excel Notification helpi Excel Discussion (Misc queries) 0 January 12th 06 10:20 AM


All times are GMT +1. The time now is 08:04 PM.

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"