Solved

Does the ActiveCell equal to one above it?

Posted on 2014-11-18
4
53 Views
Last Modified: 2014-11-18
How do I tell excel in an If statement.

If the ActiveCell and the one above me are the same, exit Sub?  I need an Exit point and not sure how to do this.
Please advise and thanks.
0
Comment
Question by:RWayneH
  • 2
4 Comments
 
LVL 25

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 40450654
If activecell.value= activecell.offset(-1,0).value  then exit sub
0
 
LVL 45

Expert Comment

by:Martin Liss
ID: 40450676
While the professor's post is what you asked for, maybe if you posted the code we could see if there is another way to do it?
0
 

Author Comment

by:RWayneH
ID: 40450701
Nope I am good.  Excel, there are a number of ways to do things.  Just needed to exit a Loop  Thanks.
0
 

Author Closing Comment

by:RWayneH
ID: 40450704
Thanks for the help.
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now