PC Review


Reply
Thread Tools Rate Thread

action upon selection

 
 
=?Utf-8?B?Qm9yaXNT?=
Guest
Posts: n/a
 
      30th Aug 2007
I have a cell I2, which is validated to a dropdown list, and everytime
someone selects something from that list, I need a macro to run. Is there
some simple code I can put into the sheet, book, or whatever (2007 Excel),
which accomplished this? I know there were action-triggered macro methods
before, but I was never really certain how they worked. If you do happen to
know how to do this and respond, please assume I'm a novice at this, and help
me understand where specifically I am supposed to be put any code provided.
Will help greatly. Thanks.
--
Boris
 
Reply With Quote
 
 
 
 
=?Utf-8?B?SGFsaW0=?=
Guest
Posts: n/a
 
      30th Aug 2007
hi ,

Place code below in your sheet's module:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Address = "$I$2" Then yourmacro
'noted that macro 'yourmacro' must be exist
End Sub

and "$I$2" is case sensitive
--
Regards,

Halim



"BorisS" wrote:

> I have a cell I2, which is validated to a dropdown list, and everytime
> someone selects something from that list, I need a macro to run. Is there
> some simple code I can put into the sheet, book, or whatever (2007 Excel),
> which accomplished this? I know there were action-triggered macro methods
> before, but I was never really certain how they worked. If you do happen to
> know how to do this and respond, please assume I'm a novice at this, and help
> me understand where specifically I am supposed to be put any code provided.
> Will help greatly. Thanks.
> --
> Boris

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Action from list selection Maze Microsoft Excel Programming 2 26th Aug 2009 08:49 PM
Take Action on Cells within Selection Mike G - D.C. Microsoft Excel Programming 3 29th Jun 2009 10:00 PM
selection action =?Utf-8?B?R2FyeQ==?= Microsoft Access VBA Modules 3 11th Dec 2006 04:58 AM
Action on sheet Selection jpizzle Microsoft Excel Programming 4 13th Jun 2005 05:33 PM
Re: Action on sheet Selection Piranha Microsoft Excel Programming 0 7th Jun 2005 08:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:01 PM.