Solved

Does the ActiveCell equal to one above it?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

929 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

10 Experts available now in Live!

Get 1:1 Help Now