Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jt jt is offline
external usenet poster
 
Posts: 18
Default initiate a macro

I would like to run a macro simply by entering a value in a particular
cell. Is this possible? thanks in advance....
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 587
Default initiate a macro

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....

  #3   Report Post  
Posted to microsoft.public.excel.programming
jt jt is offline
external usenet poster
 
Posts: 18
Default initiate a macro

On Jan 19, 1:13*pm, jt 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?
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 259
Default initiate a macro

On 21/01/2012 1:41 PM, jt wrote:
On Jan 19, 1:13 pm, 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.
  #5   Report Post  
Posted to microsoft.public.excel.programming
jt jt is offline
external usenet poster
 
Posts: 18
Default initiate a macro

On Jan 21, 7:13*am, Vacuum Sealed wrote:
On 21/01/2012 1:41 PM, jt wrote:

On Jan 19, 1:13 pm, *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
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
Worksheet_Change - initiate macro on another worksheet oms Excel Programming 4 March 11th 08 03:26 PM
Initiate Macro via change in drop Down List Sean Excel Programming 3 November 17th 07 12:07 PM
How do I initiate a macro directly in a worksheet? AMMPro Excel Programming 3 July 15th 06 11:02 PM
Initiate Macro On Save JTWood Excel Programming 2 June 14th 06 03:47 PM
Macro to initiate a spreadsheet to email Rich F[_2_] Excel Programming 2 November 12th 04 07:00 PM


All times are GMT +1. The time now is 04:02 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"