+ Reply to Thread
Results 1 to 2 of 2

Need to Paste Values

  1. #1
    Registered User
    Join Date
    05-02-2018
    Location
    Brighton, England
    MS-Off Ver
    Excel 2016
    Posts
    21

    Need to Paste Values

    HI,

    I have the current macro that shifts data between two workbooks based on the value in column A

    Please Login or Register  to view this content.
    The issue I am having is that I need to just paste values across as the data I am pasting is a mix of indexmatch's to other workbooks.

    I have tried to simply add in:

    Please Login or Register  to view this content.
    But get a Syntax Error.

    Any help is appreciated!

  2. #2
    Registered User
    Join Date
    05-02-2018
    Location
    Brighton, England
    MS-Off Ver
    Excel 2016
    Posts
    21

    Re: Need to Paste Values

    Solved it...

    For nxtRw = 2 To lastRw2
    With sht2.Range("A3:A" & lastRw2)
    Set m = .Find(wkb1.Sheets(1).Range("A" & nxtRw), lookat:=xlWhole)
    If Not m Is Nothing Then
    sht1.Range("A" & nxtRw).EntireRow.Copy
    sht2.Range("A" & m.Row).PasteSpecial Paste:=xlPasteValues
    Application.CutCopyMode = False
    End If
    End With

+ 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. Replies: 3
    Last Post: 11-29-2014, 01:14 PM
  2. copy formula and paste for new data added and autofill.....and paste special values
    By prabhuduraraj09 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2014, 07:40 AM
  3. [SOLVED] Excel 2010 - Paste Values with Paste Transpose at the same time
    By phillyfilly in forum Excel General
    Replies: 3
    Last Post: 11-05-2013, 04:23 AM
  4. [SOLVED] Changing Current Code from Paste Formulas to Paste Values
    By freybe06 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-24-2013, 12:33 PM
  5. Replies: 1
    Last Post: 12-05-2012, 11:37 AM
  6. [SOLVED] Excel 2002 - Can only paste values, wont let me paste special
    By MK_Chopper_P in forum Excel General
    Replies: 2
    Last Post: 07-12-2012, 02:22 AM
  7. Replies: 2
    Last Post: 04-12-2011, 09:46 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