Results 1 to 20 of 20

Need an IF/THEN cut and paste marco please...

Threaded View

  1. #9
    Registered User
    Join Date
    10-09-2012
    Location
    New York, N
    MS-Off Ver
    Excel 2003
    Posts
    14

    Another Thought?

    thanks so much for your help so far. I am now using the following code:

    Sub Copier()
    rowz1 = Sheets(1).Range("B1").Offset(Rows.Count - 1, 0).End(xlUp).Row
    rowz2 = Sheets(2).Range("B1").Offset(Rows.Count - 1, 0).End(xlUp).Row
    
    With Sheets(1)
        .Select
        .AutoFilterMode = False
        .Range("A1").AutoFilter Field:=1, Criteria1:="<>"
        .Range("A2:R" & rowz1).SpecialCells(xlCellTypeVisible).Copy
    End With
    
    With Sheets(2)
        .Select
        .Cells(rowz2 + 1, 1).Select
        .Paste
    End With
    
    End Sub


    So I am still facing the problem of duplicates. On the first tab, more information will be added on a weekly basis and then the second tab that this information is added to is a log of everything. So, I cannot use a macro that erases everything on the 2nd tab and pastes everything from the first tab.

    My question is this, would it be possible to add to the above code to make it so that after the marco is run, an asterik is put in the H cell of the copied row AND when the marco is run, it will not copy and paste any row that has an asterik in the H column?

    Is that too far-fetched? I have attached the file. Control + l TEST INVENTORYv2.xlsruns the above macro, however, as previously noted, if you press it again, it will copy all the same information plus any new information onto the 2nd tab. Any information that is on the 1st tab has to remain there so I cant delete it..

    Thanks for your ideas/thoughts and codes!!
    Last edited by arlu1201; 10-11-2012 at 10:41 AM.

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