Personally, I wouldn't do it that way.
If your database has 18 fields, you'd choose one to indicate that you're done
with the data entry (the 18th field???). Then if the user notices a typo, your
automatic filter may have hidden the row and it may be difficult to find. Or if
the user just starts entering data in your indicator field, it could be a
problem for the user.
But if you wanted, you could use an event macro (worksheet_change) that would
look for changes in certain ranges and run your routine.
But I don't know enough to offer any real details.
(E-Mail Removed) wrote:
>
> On Jul 9, 2:29 pm, Dave Peterson <peter...@verizonXSPAM.net> wrote:
> > That seems pretty reasonable to me.
> >
> > Why and when would you want it to run automatically?
> >
> >
> >
> >
> >
> >
> >
> > gferrer...@gmail.com wrote:
> >
> > <<snipped>>
> >
> > > Dave, here is the macro that I came up with:
> >
> > > Sub ExtractUniqueRecords()
> >
> > > Keyboard Shortcut: Ctrl+z
> >
> > > Range("List”).AdvancedFilter Action:=xlFilterCopy,
> > > CopyToRange:=Range( _
> > > "A2"), Unique:=True
> >
> > > End Sub
> >
> > > This seems to work OK, but I either have to use the keyboard shortcut
> > > or assign a button in order to run it. It's not capable of running by
> > > itself, without any (manual) commands.
> >
> > --
> >
> > Dave Peterson- Hide quoted text -
> >
> > - Show quoted text -
>
> I just want to eliminate any potential mistakes, since the person
> who's gonna be doing the data entry is rather mistake prone, and is
> most likely going to forget to use the macro command. Automating the
> whole thing whould eliminate lots of duplication errors. Ideally the
> macro would run by itself as soon as new pieces of data/records are
> added to the database.
--
Dave Peterson