Solved

A particular cell that changes triggers a macro

Posted on 2014-10-26
8
124 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
  • 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

Suggested Solutions

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
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 demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

803 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