PC Review


Reply
Thread Tools Rate Thread

initiate a macro

 
 
jt
Guest
Posts: n/a
 
      19th Jan 2012
I would like to run a macro simply by entering a value in a particular
cell. Is this possible? thanks in advance....
 
Reply With Quote
 
 
 
 
isabelle
Guest
Posts: n/a
 
      19th Jan 2012
hi,

copy this macro on the page code of this sheet

Private Sub Worksheet_Change(ByVal Target As Range)
Set isect = Application.Intersect(Target, Range("A1"))
If Not isect Is Nothing Then
' write here what to do
End If
End Sub


--
isabelle



Le 2012-01-19 13:13, jt a écrit :
> I would like to run a macro simply by entering a value in a particular
> cell. Is this possible? thanks in advance....

 
Reply With Quote
 
 
 
 
jt
Guest
Posts: n/a
 
      21st Jan 2012
On Jan 19, 1:13*pm, jt <kijij...@gmail.com> wrote:
> I would like to run a macro simply by entering a value in a particular
> cell. Is this possible? thanks in advance....


thanks for the response. How do I make the value I just entered be
the search value?
 
Reply With Quote
 
Vacuum Sealed
Guest
Posts: n/a
 
      21st Jan 2012
On 21/01/2012 1:41 PM, jt wrote:
> On Jan 19, 1:13 pm, jt<kijij...@gmail.com> wrote:
>> I would like to run a macro simply by entering a value in a particular
>> cell. Is this possible? thanks in advance....

>
> thanks for the response. How do I make the value I just entered be
> the search value?


Hi JT

Isabelle has given you a cell reference of A1 as the target cell.

So when you change the value in that cell it will trigger whatever
additional code you want it to trigger.

You can change the cell reference to any cell that fits your
requirement, other than that you will have to be more specific on what
it is you want to initiate beyond the Target Cell OnChange Event.

The more detail you can provide the more likely you will get the answer
you need a lot quicker.

HTH
Mick.
 
Reply With Quote
 
jt
Guest
Posts: n/a
 
      21st Jan 2012
On Jan 21, 7:13*am, Vacuum Sealed <noodn...@gmail.com> wrote:
> On 21/01/2012 1:41 PM, jt wrote:
>
> > On Jan 19, 1:13 pm, jt<kijij...@gmail.com> *wrote:
> >> I would like to run a macro simply by entering a value in a particular
> >> cell. Is this possible? thanks in advance....

>
> > thanks for the response. How do I make the value I just entered *be
> > the search value?

>
> Hi JT
>
> Isabelle has given you a cell reference of A1 as the target cell.
>
> So when you change the value in that cell it will trigger whatever
> additional code you want it to trigger.
>
> You can change the cell reference to any cell that fits your
> requirement, other than that you will have to be more specific on what
> it is you want to initiate beyond the Target Cell OnChange Event.
>
> The more detail you can provide the more likely you will get the answer
> you need a lot quicker.
>
> HTH
> Mick.


I would like to initiate a macro that will search a range of data for
a particular value
 
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
How can a macro automatically initiate uponing a file? =?Utf-8?B?a2FueWU=?= Microsoft Excel Misc 5 27th Apr 2005 11:45 PM
How do I initiate the windows printer select object in Excel macro =?Utf-8?B?TWljayBC?= Microsoft Excel Programming 1 13th Jan 2005 10:46 PM
Macro to initiate a spreadsheet to email Rich F Microsoft Excel Programming 2 12th Nov 2004 08:00 PM
Auto initiate a Macro =?Utf-8?B?SGFyZW4gSmV0aHdh?= Microsoft Excel Worksheet Functions 1 24th Jan 2004 03:10 PM
Initiate Macro Formula :: Combo Boxes lykwid Microsoft Excel Programming 1 23rd Jan 2004 06:31 PM


Features
 

Advertising
 

Newsgroups
 


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