Results 1 to 9 of 9

VBA macro to match information from one column with another and delete rows no match

Threaded View

  1. #1
    Registered User
    Join Date
    11-02-2016
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    21

    VBA macro to match information from one column with another and delete rows no match

    Hi,

    I have tested different macro setups I found on different threads. Even if tried taking some parts and make some changes the macro didn't do what I wanted.

    I need a macro because this setup will need to done on 20-45 workbooks containing information in 6-7 sheets from different reports containing anything from 300 rows to 30000 rows.

    What I need help with is the following:

    I will copy some information to Sheet1. In column A employer ID found. Let's say it's 500 rows.
    In Sheet2 I will copy other information where column B contains employer ID as well.

    I want the macro to look through Sheet2 column B and delete any row in Sheet1 that doesn't match in column A.

    I can easily do this manually with a formula to create a True/False and then delete manually but this needs to be done automatically to save me hours of work.

    Any suggestions?

    Thanks in advance

    Regards
    //René
    Last edited by Renejorgensen; 11-17-2016 at 08:10 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Macro to add another Macro to a button to add into a larger Macro.
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-03-2016, 10:51 AM
  2. [SOLVED] Define variable in macro than calling that macro inside another macro
    By jakopak in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-21-2015, 10:58 AM
  3. Using a macro on workbook1 to create a button in wb2 and assigning macro "wb2!macro"
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-13-2014, 11:39 AM
  4. [SOLVED] Macro to show Which macro didnt work in a nested macro
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2013, 03:21 AM
  5. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  6. lookup macro, solver macro, realtime macro
    By xelhelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2011, 06:14 PM
  7. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM

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