Solved

Does the ActiveCell equal to one above it?

Posted on 2014-11-18
4
57 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 26

Accepted Solution

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

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
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…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

827 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