Results 1 to 5 of 5

Help with cut/paste row macro (need VALUES)

Threaded View

  1. #1
    Registered User
    Join Date
    11-19-2014
    Location
    Chicago
    MS-Off Ver
    7
    Posts
    15

    Help with cut/paste row macro (need VALUES)

    I have the following code that works just fine, but I need it to paste the values as I'm referencing a table on the active sheet. I get an error in a calculated field of my destination sheet ("Master") since the row has been deleted via the macro.

    Can someone either modify the existing code, or provide a new one that'll paste values instead? Code basically takes a row that has "Complete" in column A and cuts/pastes into another sheet.

    Private Sub Worksheet_Change(ByVal Target As Range)
     Application.EnableEvents = False
      If Target.Column = 1 Then
       If Target = "Complete" Then
         nxtRw = Sheets("Master").Range("B" & Rows.Count).End(xlUp).Row + 1
          Target.EntireRow.Copy Destination:=Sheets("Master").Range("A" & nxtRw)
          Target.EntireRow.Delete shift:=xlUp
       End If
      End If
     Application.EnableEvents = True
    End Sub
    Last edited by kahnailee; 12-03-2014 at 08:42 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 05-14-2014, 12:52 AM
  2. [SOLVED] Macro to paste formulas then paste values
    By deanstein in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-19-2013, 11:30 AM
  3. Macro to special paste dynamic values into text values with periods
    By iyudhi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2011, 04:42 PM
  4. Macro needed to Paste Values and prevent Macro operation
    By thunderfoot in forum Excel General
    Replies: 1
    Last Post: 06-10-2005, 08:05 PM
  5. [SOLVED] Macro needed to Paste Values and prevent Macro operation
    By thunderfoot in forum Excel General
    Replies: 0
    Last Post: 06-10-2005, 03:05 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