+ Reply to Thread
Results 1 to 4 of 4

Deleting rows

  1. #1
    Registered User
    Join Date
    01-12-2006
    Posts
    13

    Deleting rows

    Hi all,

    I'm not very proficient in VBA, but I'm trying to create a macro that would do the following:

    I have several tabs in a worksheet. A large table is downloaded in each tab every day. A macro selects the data that is useful and gives the data a code, and if the data is not useful, it returns a "N/A" in column A. Because the rows of useful data is never constant, this is what has been problematic for me.

    Is there a macro that would find where the useful data ends (or the no useful data (N/A) starts) and then find the last row of the table (some days data has 3,400 rows, next day could be 10,000 rows) and deletes all of the non useful data (N/A).

    Any help is highly appreciated,

    Thanks --
    JGarces

  2. #2
    Registered User
    Join Date
    09-23-2007
    Location
    India
    Posts
    11

    Deleting rows

    JGarces,

    Please insert the following lines after your code in macro.

    Please Login or Register  to view this content.

    This will delete all the unuseful rows which contains "N/A" in column A.
    Last edited by VBA Noob; 09-26-2007 at 05:33 PM.
    Thanks

    Vinay Shrivastava

    [email protected]

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Vinay,

    Please read forum rules below (Rule 5). All code must be wrapped (tagged)

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    01-12-2006
    Posts
    13

    Deleting rows

    Thank you very much Vinaysri11, the code worked very well and very fast.

    JGarces

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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