+ Reply to Thread
Results 1 to 3 of 3

Delete Rows based on values present in another column

  1. #1
    Registered User
    Join Date
    02-04-2013
    Location
    Miami
    MS-Off Ver
    Excel 2003
    Posts
    2

    Delete Rows based on values present in another column

    Hi, I am writing the following code in a button but it is not working for some reason, the code does not generate me an error but it's not doing what it's supposed to do either.

    Please Login or Register  to view this content.
    I have some values on sheet1 column A and some values on sheet2 column A, I created a button on sheet2 which will look for any matches on sheet1, if found, it should delete the row of the value in that sheet. Pleas note: there are not multiple records with the same value.

    Thank you!
    Last edited by JBeaucaire; 03-01-2013 at 08:19 PM. Reason: Moved to own thread and added CODE tags. PLEASE read the FORUM RULES, link is above in menu bar.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Delete Rows based on values present in another column

    your code compares Sheet2 column A with Sheet1 column B
    change the line
    Please Login or Register  to view this content.
    to
    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    02-04-2013
    Location
    Miami
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Delete Rows based on values present in another column

    Thank you, well the columns I was trying to compare are correct, I just restarted the PC and it worked... Sorry for the late reply.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1