Results 1 to 17 of 17

vba iserting value with offset method & copying to new sheet

Threaded View

  1. #1
    Forum Guru Sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2019 | 2021
    Posts
    15,028

    vba iserting value with offset method & copying to new sheet

    Hi All

    I have started a new post on this as the code has been improved drastically and I need assistance adjusting xlnitwit's below code.
    What I need to achieve is:

    1. To have the word "COD" inserted into column F of each row that matches TRow criteria before copying over.
    2. Currently the rows gets copied over and over again to Range A2. I need it to copy to next rows down after the first copy.

    Can anyone assist. Been at it all night and can't figure it out.
    Sub Move()
    Application.ScreenUpdating = False
    Dim TRow As String
    TRow = "20160908285"
    With Sheets("Temp")
        With .Range("A1").CurrentRegion
            .AutoFilter 2, TRow
            .Offset(1).Copy Sheets("Hist").Range("A2")
            .Offset(1).EntireRow.Delete xlShiftUp
        End With
            .AutoFilterMode = False
    End With
    Application.ScreenUpdating = True
    End Sub
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Iserting data in excel file without opening of that
    By afshingivi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2015, 05:02 AM
  2. Replies: 8
    Last Post: 08-13-2015, 06:14 AM
  3. [SOLVED] Copying (non-contiguous) headers to next sheet: errors with Union method
    By k64 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-29-2013, 12:07 PM
  4. help needed with format command using .Offset method
    By perry_fawn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-06-2011, 11:47 AM
  5. Offset Method in a Function
    By RGButzARchInc in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-30-2009, 04:13 PM
  6. Offset Method and Interpreting Absolutes in Range Objects
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-08-2006, 07:15 PM
  7. [SOLVED] Can I use a defined integer in an OFFSET method?
    By BrookStevenson in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-22-2005, 11:07 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