+ Reply to Thread
Results 1 to 7 of 7

If word entered not in defined name range, copy & paste it to bottom of defined name range

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    If word entered not in defined name range, copy & paste it to bottom of defined name range

    Is it possible to have a macro that will analyze words entered in an area and if they do not match the any of the words in a defined name range, to copy and paste it to the defined name range? And if it does match, do nothing.

    edit: I think it would be best if the text was ran through the trim function prior to looking for a match.
    Last edited by Butcher1; 11-05-2014 at 01:32 PM.

  2. #2
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: If word entered not in defined name range, copy & paste it to bottom of defined name r

    This is probably not exactly what you're looking for, but maybe a good start.

    WordCheck.xlsm
    Acts 4:12
    Salvation is found in no one else, for there is no other name under heaven given to mankind by which we must be saved.

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: If word entered not in defined name range, copy & paste it to bottom of defined name r

    It is definitely in the ball park of what I am looking for. Is it possible for the compare list to be a dynamic named range so that any no match word becomes part of the compare list?

  4. #4
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: If word entered not in defined name range, copy & paste it to bottom of defined name r

    Well, yea it's possible, but I have to ask: If the result of a no-match is to make it a match, then what's the point? Ultimately every word becomes a match.

  5. #5
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: If word entered not in defined name range, copy & paste it to bottom of defined name r

    The words would be going into a named range so that they would be accessible as a combo box option. Which would allow for easier data base searching, filtering and organization.

  6. #6
    Valued Forum Contributor natefarm's Avatar
    Join Date
    04-22-2010
    Location
    Wichita, Kansas
    MS-Off Ver
    2016
    Posts
    1,020

    Re: If word entered not in defined name range, copy & paste it to bottom of defined name r

    Ok, so if I understand correctly, your not saying to add the words to the "Compare" named range, but rather, add them to the NoMatch range, and then rename the range to include the addition.

    The following should do it. I also put in a check to not add the word to the NoMatch range if it is already there, and to sort the range after each addition.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: If word entered not in defined name range, copy & paste it to bottom of defined name r

    Thank you, I have finally had time to sit down with this. Sorry for the delay.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Copy, paste, replace- user defined range in all the defined sheets
    By aganesan99 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-13-2014, 12:28 PM
  2. [SOLVED] Copy range and paste to next empty row in a defined row or area
    By JimmyG. in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-13-2013, 03:11 PM
  3. EXCEL 2003 copy paste a defined range in a cell
    By EXCELNOOB123 in forum Excel General
    Replies: 1
    Last Post: 03-07-2011, 10:01 PM
  4. Finding a defined range of cells then Copy & Paste
    By bernborough in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-11-2010, 06:45 PM
  5. Replies: 0
    Last Post: 02-24-2005, 04:06 PM

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