+ Reply to Thread
Results 1 to 5 of 5

macro should delete entire rows which starts with "US" and etc ,should delete duplicates

  1. #1
    Registered User
    Join Date
    08-28-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    92

    Smile macro should delete entire rows which starts with "US" and etc ,should delete duplicates

    Hi all, a very good morning to all of you,

    can someone please help me with the code....

    Things i wanted is...

    1)when i open the desired sheet the macro should start running.
    2)my raw data sheet is saved at "C:\Test\euro Raw data\"
    3)when i open the desired sheet the macro should open the raw data sheet and copy all the data from raw data sheet to desired sheet.
    4)it should delete the entire row where ISIN value begins with "US", "XX","ZA" and also it should delete duplicate rows with same ISIN value and dirty price value, leaving one duplicate row in desired sheet
    5) i have highlighted the duplicate values with color in raw data sheet(Please refer raw data sheet for your reference)
    6)i have also attached desired sheet for your reference.
    7)the macro should save the desired sheet in same path "C:\Test\euro Raw data\" as "EURO & today's date"
    8) and all sheets should close .

    I hope the explanation and logic's are enough for the code. please refer the attached sheets for reference, i have highlighted the duplicate rows for your reference.This is sample data the original sheet has tons of data.

    Note : duplicate value in the sense,Both the rows should match with same ISIN and Dirty price value.i have highlighted the duplicate rows for your reference

    Thanks in advance......
    Attached Files Attached Files
    Last edited by boddulus; 10-12-2014 at 12:28 AM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,604

    Re: Code which deletes unwanted data and duplicate rows

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title go to your first post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-28-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    92

    Re: Code which deletes unwanted data and duplicate rows

    Hi ProtonLeah,
    I hope this will be the clear tittle......

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: macro should delete entire rows which starts with "US" and etc ,should delete duplicat

    Try next code and comment
    Please Login or Register  to view this content.
    Attached Files Attached Files
    - Battle without fear gives no glory - Just try

  5. #5
    Registered User
    Join Date
    08-28-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    92

    Re: macro should delete entire rows which starts with "US" and etc ,should delete duplicat

    Hi PCI, thanks for the reply... this is exactly what i want thanks for the help ....

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Help with vba code that deletes all data except for highest value
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-27-2014, 06:01 PM
  2. E-Mail code that deletes unwanted rows before attaching
    By adam2308 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-13-2012, 09:56 AM
  3. [SOLVED] Please modify code so it deletes duplicate values in column A
    By Hello23 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-06-2012, 02:13 PM
  4. Removing Unwanted Rows and summing the duplicate Rows
    By Cena in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2010, 07:00 AM
  5. Useful code that deletes entire rows based on formatting
    By Ralfie in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-20-2007, 01:02 PM

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