+ Reply to Thread
Results 1 to 5 of 5

I want to delete rows that include some specific serial numbers

  1. #1
    Registered User
    Join Date
    10-30-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    24

    I want to delete rows that include some specific serial numbers

    I'm very new to VBA and i would like to know if its possible to delete rows that has a specific serial number in column A. I am going to use the macro in different workbooks (not at the same time). I have tried the one below but it finds a serial number that starts with 140 (1407) and then nothing happens.

    Please Login or Register  to view this content.

    What i want is to delete the rows if it shows a value of 140, 1708, 2071, 759 and 1313.

    Thanks in advance

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: I want to delete rows that include some specific serial numbers


    Better is to start to read the VBA help of Find method, all you must know in …

  3. #3
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: I want to delete rows that include some specific serial numbers

    try this code
    Please Login or Register  to view this content.
    hope this will work
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  4. #4
    Registered User
    Join Date
    10-30-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: I want to delete rows that include some specific serial numbers

    Thank you so much, will this work if the i have 51 columns (AY)?

  5. #5
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: I want to delete rows that include some specific serial numbers

    Yes it will work , but it will filter that value only from column A ok

+ 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. [SOLVED] Transpose Rows to Columns VBA Code and delete specific account numbers
    By cowboys in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-19-2012, 06:10 PM
  2. how to put serial numbers to data rows
    By sumesh56 in forum Excel General
    Replies: 3
    Last Post: 04-13-2012, 07:34 PM
  3. Replies: 2
    Last Post: 11-24-2010, 12:12 AM
  4. Finding a serial number in a list of serial numbers
    By zocoloco in forum Excel General
    Replies: 2
    Last Post: 02-04-2009, 05:20 AM
  5. [SOLVED] Renaming Sequential Rows to create serial numbers
    By forceten32 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2005, 07:20 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