+ Reply to Thread
Results 1 to 8 of 8

according to sheet two delete first sheet data

  1. #1
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Post according to sheet two delete first sheet data

    dear friends here i have attached my work sheet.in my document has two work sheets.first one is "dye que" & second one is "production sheet".this production sheet data has machine wise.my question is if second sheet column "G" is not empty & same row column "B" value match with sheet one any cell,that cell all data should delete.pls any body can make macro for this.it's very big help for me.thanks..
    Attached Files Attached Files
    Last edited by johncena; 03-17-2010 at 04:58 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: according to sheet two delete first sheet data

    Since row 7 has a value in G7 and B7 is 128801 which is found on the Dye Que sheet in cell C4, then the entire row 7 should be deleted from the Production Sheet?

    If so, this will do that:
    Please Login or Register  to view this content.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: according to sheet two delete first sheet data

    thanks JB.your comparing is correct.but i need to delete dye que C4 cell(as per your example).no need to do anything in production sheet.according to production sheet dye que need to update,
    Last edited by johncena; 03-16-2010 at 06:48 AM.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: according to sheet two delete first sheet data

    Try this then:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-12-2006
    Location
    London UK
    Posts
    109

    How to write a macro which will delete other macros

    I send files to a third party automatically via dropbox, but I first need to delete confidential macros contained in one of the files. Can anyone suggest code which will clear some (or preferably all) of the macros in the file?
    Thanks
    Astrikor

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: according to sheet two delete first sheet data

    Save the file as an Excel 2007 .xlsx file. That is not a macro-enabled workbook, and a nifty way to strip them all at once.

    If you're using Excel 2003, like I am, just install Microsofts compatibility addin and you will be able to read and write Excel 2007 formats.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: according to sheet two delete first sheet data

    astrikor,

    Please take a few minutes to read the forum rules, and then start your own thread.
    Entia non sunt multiplicanda sine necessitate

  8. #8
    Forum Contributor
    Join Date
    02-14-2010
    Location
    oman
    MS-Off Ver
    Excel 2003
    Posts
    384

    Re: according to sheet two delete first sheet data

    thanks u very much JB.your macro work very well,thanks a lot again...

+ 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