Solved

Does the ActiveCell equal to one above it?

Posted on 2014-11-18
4
60 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
[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
  • 2
4 Comments
 
LVL 26

Accepted Solution

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

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
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…

726 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