+ Reply to Thread
Results 1 to 6 of 6

Copying Values (Error PasteSpecial method)

  1. #1
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Copying Values (Error PasteSpecial method)

    Hi everyone,
    I have the below codes that will let me open another sheet and copy the values of certain range.
    I wanted to paste only the values on my other sheet but I am having this error "PasteSpecial method of Range class failed"

    Here is the code:

    Please Login or Register  to view this content.
    Could you let me know what seems to be the problem and how I can correct it?
    Thank you in advance.

    Regards,
    Andrew
    Last edited by Andrew.Trevayne; 02-27-2017 at 03:22 AM.

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: Copying Values (Error PasteSpecial method)

    I don't have a data file like the one you are using so cannot test.
    The problem lies with the Range selection.
    Please Login or Register  to view this content.
    After that are your settings
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: Copying Values (Error PasteSpecial method)

    Try the code like this:

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Re: Copying Values (Error PasteSpecial method)

    Thanks, but I tried and modified the code and it hanged.

  5. #5
    Forum Contributor
    Join Date
    11-02-2010
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    353

    Re: Copying Values (Error PasteSpecial method)

    Quote Originally Posted by Keebellah View Post
    Try the code like this:

    Please Login or Register  to view this content.
    Ah! This did it!
    Thank you so much!

  6. #6
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,916

    Re: Copying Values (Error PasteSpecial method)

    As of Excel 2010 Excel shows the message "Not responding..." this is a real pain in the A but that's the way MicroSoft wrote this.
    The process runs in the background and for some stupid reason the message Not Responding is shown , they could have chosen for something like Processing or a progress bar.
    To speed it up you could disable events, automatic calsutaion and then set these back to true after completion.

    I do not understand why you place the command End when no datafile is selected, with this command all macro processing stops.
    I always use Exit Sub instead.

+ 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. PasteSpecial method of range class failed error 1004
    By iwannabakat in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-05-2014, 08:51 PM
  2. PasteSpecial method of Range class failed error?
    By ks100 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-29-2014, 02:31 PM
  3. [SOLVED] Runtime error PasteSpecial method of Range class failed
    By russ50 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-18-2012, 02:27 AM
  4. [SOLVED] 'PasteSpecial method of Range class failed' error
    By ImperatorAtticus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-23-2012, 12:01 PM
  5. Pastespecial method of range class failed error
    By laali in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2011, 10:56 AM
  6. [SOLVED] PasteSpecial Method of Range Class Failed Error
    By Brian C in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-30-2006, 03:10 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