+ Reply to Thread
Results 1 to 6 of 6

Macro to search multiple Documents and delete Rows.

  1. #1
    Registered User
    Join Date
    10-17-2008
    Location
    Jacksonville
    Posts
    11

    Macro to search multiple Documents and delete Rows.

    Let me preface this with the fact that I truly do not understand creating a Macro, give me some HTML, PHP, or a few other things and I'm good but I have never even attempted to create a Macro. That being said...

    So, I'm going crazy and I figured this might be a good place to get some help so here goes. I'm trying to create an Excel Macro that will pull a list of numbers, then search my spreadsheet and if any of the numbers are found delete the entire row. I have been doing this manually but it's extremely tedious and I have to search through multiple spreadsheets each day. Anyone here know enough about Excel and Macros to be able to help me out?

    Oh yeah, I have cross posted this at tizag.com but this is more for web design than Excel help so I posted it here as well.
    http://forums.tizag.com/showthread.php?t=9650
    Last edited by BigSlick; 10-17-2008 at 11:56 AM. Reason: Updated Title

  2. #2
    Forum Contributor
    Join Date
    10-16-2008
    Location
    Iowa
    Posts
    121
    What do you mean by "pull a list of numbers?" Do you want Excel to go to some data source and get numbers? What is the source and how are the numbers formatted so Ecel can pull them? Or is the source a csv file?

    And what row is to be deleted? The row where a certain number is contained? What about subsequent rows containing the same number?

  3. #3
    Registered User
    Join Date
    10-17-2008
    Location
    Jacksonville
    Posts
    11
    Quote Originally Posted by mhuston View Post
    What do you mean by "pull a list of numbers?" Do you want Excel to go to some data source and get numbers? What is the source and how are the numbers formatted so Ecel can pull them? Or is the source a csv file?

    And what row is to be deleted? The row where a certain number is contained? What about subsequent rows containing the same number?
    This is a manually updated list of numbers that will be pulled from a separate excel spreadsheet.

    The row to be deleted will be any row that contains any of the numbers. I'm just not even sure where to begin with this thing.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,525
    Hi,
    Check out this thread and example provided
    http://www.excelforum.com/excel-prog...-into-one.html

  5. #5
    Forum Contributor
    Join Date
    10-16-2008
    Location
    Iowa
    Posts
    121
    This should do it. I often use Ron deBruin's website, http://www.rondebruin.nl/tips.htm, for code. This is an edited version of examples of deleting portions of a worksheet (in this case "data") based on certain criteria, in this case values on a "criteria" worksheet in columnA. It runs as a macro, Delete_with_Autofilter_More_Criteria.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-17-2008
    Location
    Jacksonville
    Posts
    11
    Thanks for the help, that should get me going in the right direction at the very least.

+ 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