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

Excel Helper

I have a list of names in column A.

What i want is program whereby if I enter a new name at the bottom of the
column, if it is a duplicate (i.e. name appears elsehwere in list) then a
msgbox appears telling em it is a duplicate.

Now I can actauly ahcieve this in VBA but...

I have to actaully execute the macro maually.

How can i get the macro to run automatically i.e. I enter a new name, press
enter, and the macro runs without me clicking a separate button to run it of
pressing F5 etc.

I have tried...

Application.Volatile
Application. OnKey
Application. Onaction

How do I get Excel to run a macro once an event has occurred.

Any insights appreciated...

Alex
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Event handling...

Use the WorkSheet Change Event

see Chip Pearson's page on Events

http://www.cpearson.com/excel/events.htm

--
Regards,
Tom Ogilvy

"Alex" wrote in message
...
Excel Helper

I have a list of names in column A.

What i want is program whereby if I enter a new name at the bottom of the
column, if it is a duplicate (i.e. name appears elsehwere in list) then a
msgbox appears telling em it is a duplicate.

Now I can actauly ahcieve this in VBA but...

I have to actaully execute the macro maually.

How can i get the macro to run automatically i.e. I enter a new name,

press
enter, and the macro runs without me clicking a separate button to run it

of
pressing F5 etc.

I have tried...

Application.Volatile
Application. OnKey
Application. Onaction

How do I get Excel to run a macro once an event has occurred.

Any insights appreciated...

Alex



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
checkbox event handling function nevwalters Excel Worksheet Functions 2 May 16th 06 04:27 AM
Handling of event raised in other class module VbaNew Excel Programming 1 January 10th 05 12:42 PM
excel object event handling Vladimir Kryachko Excel Programming 1 September 9th 04 08:01 AM
user form-on open event? keydown event? FSt1[_3_] Excel Programming 2 August 5th 04 02:26 PM
OnTime event not firing in Workbook_Open event procedure GingerTommy Excel Programming 0 September 24th 03 03:18 PM


All times are GMT +1. The time now is 07:26 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"