+ Reply to Thread
Results 1 to 11 of 11

how to keep only names of my list and delete the rest VBA macro excel

  1. #1
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    how to keep only names of my list and delete the rest VBA macro excel

    Its ok for me for this problem. Thank you
    Last edited by rosamoreno; 03-04-2021 at 07:25 AM.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,443

    Re: Keep only names of my list and delete the rest

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)

  3. #3
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,465

    Re: how to keep only names of my list and delete the rest VBA macro excel

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    Re: how to keep only names of my list and delete the rest VBA macro excel

    Sorry it didnt work out for me.

    It deletes everything but the first component of the list, in this case "3-methylbutanal".

    Thank you

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,465

    Re: how to keep only names of my list and delete the rest VBA macro excel

    Ahh, should be like this.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    Re: how to keep only names of my list and delete the rest VBA macro excel

    Also ok.... Personal info
    Last edited by rosamoreno; 03-04-2021 at 07:25 AM.

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,465

    Re: how to keep only names of my list and delete the rest VBA macro excel

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    Re: how to keep only names of my list and delete the rest VBA macro excel

    Sorry it doesn't work out for me...I still have components that are not present in my list. i'll also like to keep only components that contain the exact same word

    please find attached my script

    Please Login or Register  to view this content.
    Thank you very much !

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,465

    Re: how to keep only names of my list and delete the rest VBA macro excel

    ..................
    Last edited by jindon; 03-04-2021 at 07:16 AM.

  10. #10
    Registered User
    Join Date
    02-23-2021
    Location
    france
    MS-Off Ver
    2010
    Posts
    17

    Re: how to keep only names of my list and delete the rest VBA macro excel

    is it possible to delete the last post ? my problem here is a bit different.
    Thankk you !

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,465

    Re: how to keep only names of my list and delete the rest VBA macro excel

    How is it different?
    Why are you using my code there?

    Those codes are originated by your first thread

    https://www.excelforum.com/excel-pro...ions-rows.html

+ 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. how to delete unwanted cells & delete the rest
    By annux08 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2015, 05:34 AM
  2. Delete specific suffixes from a list of company names
    By bsmizzle in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-19-2014, 08:09 AM
  3. Replies: 4
    Last Post: 08-28-2013, 11:02 AM
  4. delete sheet if not in a list of names
    By fabdav in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-14-2012, 03:38 PM
  5. how to delete list names.
    By Worldtraveller in forum Excel General
    Replies: 4
    Last Post: 03-14-2011, 01:53 PM
  6. Macro : To find word and Select rest after this cell and delete rest
    By Zortabello in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2010, 08:06 AM
  7. Delete names from a list
    By ClemCadidlhoper in forum Excel General
    Replies: 15
    Last Post: 01-05-2006, 06:55 PM

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