+ Reply to Thread
Results 1 to 10 of 10

macro that deletes certain results

  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    ohio
    Posts
    10

    macro that deletes certain results

    I am making a macro that deletes #N/A's, but i want to add a few things to it
    that should be deleted:

    the phrases "total board", "total metal" and "Item", and any non-text (i.e. any
    number) that appears.

    this is what i have so far:

    Please Login or Register  to view this content.

    what do i add to meet my specifications? Any help is greatly appreciated.
    Last edited by dfrank; 06-30-2008 at 01:47 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Please read our Forum Rules about thread titles, and then edit your thread title to be descriptive of your problem.

  3. #3
    Registered User
    Join Date
    06-30-2008
    Location
    ohio
    Posts
    10
    Please Login or Register  to view this content.

    I was given this code from a guy somewhere else, but it doesnt work and he dissapeared.

    i basically want to delete the phrases "total board", "total metal" and "Item", and any number.

    also, this is supposed to pertain to the entire worksheet, so i think his 'Selection' part of the code is not correct.

    any help?

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Assuming that otherwise does what you want, then maybe like this:
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-30-2008
    Location
    ohio
    Posts
    10
    appreciate the response, but i get an error doing this. here is what i have:
    \1
    [URL=http://g.imageshack.us/g.php?h=389&i=midstep1hy0.jpg[/URL]

    here is what happens when i use the code provided:

    \1
    \1 do not click second link. it is nothing.
    i get an mismatch error 13.

    any idea on how to fix this?
    Last edited by dfrank; 07-01-2008 at 08:14 AM.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Try this. If it doesn't work, please post a workbook with the code in it.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    06-30-2008
    Location
    ohio
    Posts
    10
    eh, that deleted the whole worksheet

    here is a synopsis of this workbook:

    So the basic premise of this is that i need to transfer items from sheet Material to Proposal. think of Material as an inventory order list, and Proposal the invoice. The way i was able to construc this was to use a code given to me from someone else to copy the ones selected on Material over to 'MidStep.' This is found in column B. in column A, i detect the duplicates, and in column D I tell it to return the value from columb B IF Column A reads 'Original.'



    this is where im at right now. i need to get rid of all the excess stuff other than the item names in columns D and F. once that is taken care of, i have a macro in line to sort them so they are all bunched together, then another macro to copy them over to Proposal. THEN I have a macro that runs both of the macros. And that is where i need it to end.



    I know this might be confusing, and i greatly appreciate your efforts. Thanks a lot.

    here is a link to my .xls, it was too big to attach to the message.

    http://www.datafilehost.com/download-65edb2b0.html
    Last edited by dfrank; 07-01-2008 at 01:15 PM.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    I'm not sure I followed all that, but try this:
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    06-30-2008
    Location
    ohio
    Posts
    10
    got it. thanks.

  10. #10
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You're welcome, glad it worked for you.

+ 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