+ Reply to Thread
Results 1 to 4 of 4

Trying to Copy Data into Last Row of Table-PasteSpecial Values. Compile Error showing up

  1. #1
    Registered User
    Join Date
    12-07-2020
    Location
    Waterloo, Canada
    MS-Off Ver
    2019
    Posts
    2

    Question Trying to Copy Data into Last Row of Table-PasteSpecial Values. Compile Error showing up

    I have no idea what is wrong with the code-I've used the PasteSpecial function in exactly the same way as I have before, but it is giving me a "Compile Error: Expected: End of Statement". Help please! I bolded the line that isn't functioning properly.

    Please Login or Register  to view this content.
    Last edited by nathan82; 12-07-2020 at 03:46 PM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Trying to Copy Data into Last Row of Table-PasteSpecial Values. Compile Error showing

    You need to get rid of the " _" after Copy.
    If you are using pastespecial it must be separate from the copy line.

  3. #3
    Registered User
    Join Date
    12-07-2020
    Location
    Waterloo, Canada
    MS-Off Ver
    2019
    Posts
    2

    Re: Trying to Copy Data into Last Row of Table-PasteSpecial Values. Compile Error showing

    Thank you! I'm kicking myself because it's so simple!

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Trying to Copy Data into Last Row of Table-PasteSpecial Values. Compile Error showing

    Glad to help & thanks for the feedback.

+ 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. Copy Data outside Excel and PasteSpecial inside Worksheet - Run-time error '1004'
    By deisouss in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-17-2021, 02:27 AM
  2. [SOLVED] My pivot table is not showing the same values as the source data
    By heytherejem in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-26-2018, 08:25 AM
  3. [SOLVED] compile error with selection.pastespecial code
    By philaugust2004 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-05-2017, 03:39 PM
  4. [SOLVED] Copying Values (Error PasteSpecial method)
    By Andrew.Trevayne in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-27-2017, 03:28 AM
  5. Copy pasteSpecial Values after rngCopy
    By bgonen in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-25-2015, 09:29 PM
  6. showing compile error
    By anilg0001 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-09-2014, 02:44 AM
  7. Showing chart as percentage but data table as values
    By Evetsllub in forum Excel General
    Replies: 0
    Last Post: 08-23-2010, 12:08 AM

Tags for this Thread

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