Results 1 to 3 of 3

Find Range and Delete Duplicate Value In Specified Column With VB Macro

Threaded View

  1. #1
    Registered User
    Join Date
    04-21-2009
    Location
    Puyallup, WA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Find Range and Delete Duplicate Value In Specified Column With VB Macro

    I've searched for many hours and I'm weary. I surrender. I can usually figure things out on my own but this - what seems easy - has me stumped.

    Please see attached doc "Find and Delete.xlsx"

    Inside, the value in F12 is a very important cell. Using the text value from F12, I first want to use visual basic code to find the range in column B because it will vary. This means the 'text words' column might have 50 words or it might have 2000. I have racked my brain trying to find a universal way to find a variable range.

    Then I would like to search for the exact text value within this range in column B. For example, in F12 is the text word 'windows xp registry cleaner' and you can see that this value is in B9.

    There will only be one exact match in column B.

    I then would like the vb script to delete and remove this found value, then move left one space in column A to also delete the ID number associated with the text word. Then shift both rows up to fill the empty gap.

    I have tried numerous different codes but to be honest, I'm not really sure what I'm looking for. I've tinkered with find and replace, vlookup, match, find, search, and many more.

    I would be so grateful to anyone that can help me out. You have no idea!
    Attached Files Attached Files
    Last edited by sweetrevelation; 05-09-2009 at 06:07 AM.

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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