Solved

A particular cell that changes triggers a macro

Posted on 2014-10-26
8
129 Views
Last Modified: 2014-10-26
I need to trigger a macro only if Summary.range("B13") changes. Summary is sheet 5
0
Comment
Question by:bearblack
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
8 Comments
 
LVL 6

Assisted Solution

by:Flora
Flora earned 250 total points
ID: 40405140
here it is.  put this code into the sheet object

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$b$13" Then
Call YourMacro
End If
End Sub
0
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 250 total points
ID: 40405141
You can do this with a Worksheet_Change event macro that is inserted in Sheet5:
Worksheet_Change event
Regards,
-Glenn
0
 
LVL 6

Expert Comment

by:Flora
ID: 40405142
put this code into Summary sheet object
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Expert Comment

by:Flora
ID: 40405143
Glenn I was first   :-)

you were few second late :-)
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40405149
Yep; that's what I get for creating a pretty graphic. :-P

-Glenn
0
 
LVL 2

Author Comment

by:bearblack
ID: 40405152
Tried it and ANY cell that changes on the Summary sheet triggers the private sub.
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 40405154
You'll have to show us your code; if you used either Flora20's or my example, it would only happen if cell B13 of Sheet5 (Summary ?) was changed.

-Glenn
0
 
LVL 6

Expert Comment

by:Flora
ID: 40405167
can you check the attached file.
F--F--Book1.xlsm
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question