+ Reply to Thread
Results 1 to 7 of 7

Can I create a button auto delete a row?

  1. #1
    Registered User
    Join Date
    05-23-2011
    Location
    New Orleans
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    12

    Smile Can I create a button auto delete a row?

    I am able to download or export Trustee Sale information from this website:http://64.6.222.36/stpsocivil/realestateSL.html into an excel spreadsheet very easily in Window Internet Explorer. My problem is 2 fold:
    1st. Take a look at line 13. The export transfered the "STOPPED" value into a row of it's own. I would like to create a button that checks this columun for any variables that say stop. Once it finds the word "STOPPED", cut and paste it into the the cell directly above it. Then delete the row that "STOPPED" was cut from. This feature would need to check the entire column.

    2nd. Columun E, The export tranferred the street address into one cell. I need to put the address, city, state, and zip into individual cells. I assumed there's a way to create a program that would do the following:
    1. Insert 4 colomuns to the right of E
    2. Copy/Cut everything to the right of the 1st comma into the 1st new columun.
    3. Copy everything between the 1st comma and space to the 2nd comma into the new 2nd colomun
    4. Repeat step3 until you reach the end of the list or after the zip code has been copied and moved.
    5. delete columun E

    I attached the spreadsheet to this post. Let me know if I am being unrealistic with the program.

    Thanks in advance for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Can I create a button auto delete a row?

    Hi, this code should take care of deleting the "STOPPED" rows .

    Please Login or Register  to view this content.
    I'm working on part 2 of your question.
    Pierre

  3. #3
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Can I create a button auto delete a row?

    Hi again,
    here is a macro to do all you wanted to do. Look at the attached file.
    Pierre
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    05-23-2011
    Location
    New Orleans
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    12

    Re: Can I create a button auto delete a row?

    Thanks for help. Is there anyway that you could copy the answer into the forum thread? Don't want to download files to my work computer. Thanks for your help.

  5. #5
    Registered User
    Join Date
    05-23-2011
    Location
    New Orleans
    MS-Off Ver
    Excel 2010, Excel 2007
    Posts
    12

    Re: Can I create a button auto delete a row?

    Quote Originally Posted by p24leclerc View Post
    Hi, this code should take care of deleting the "STOPPED" rows .

    Please Login or Register  to view this content.
    I'm working on part 2 of your question.
    Pierre
    This code didn't work the way I wanted it. The code needs to Cut Stopped from the cell and paste it directly above it's previous position. So if you look at the attached file, cell A13 should be cut and pasted to cell A12. Then Row 13 should be deleted and the formula should move on to the next Stopped cell.

    Thanks in advance for your help.

  6. #6
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Can I create a button auto delete a row?

    I corrected the first part of the macro to copy Stopped to the previous row.
    Here is the code
    Pierre

    Please Login or Register  to view this content.

  7. #7
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Can I create a button auto delete a row?

    This new code is probably a little bit better. Pierre
    Please Login or Register  to view this content.

+ Reply to Thread

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