+ Reply to Thread
Results 1 to 2 of 2

Error in macro when auto-pasting code

  1. #1
    Registered User
    Join Date
    01-09-2014
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    77

    Error in macro when auto-pasting code

    Hey all,

    I'm new to VBA but have had it working well for me, until the other night when a user complained that when he ran a macro, it came up with the error "Paste method of Worksheet class failed". I should note that this has worked time and time again, so I'm lost. I also found tonnes of answers with a Google search but they were all relative to that persons code.

    So this is the code I am using to paste from the clipboard into another tabbed worksheet (apologies if the code is horrible)
    Please Login or Register  to view this content.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Error in macro when auto-pasting code

    Is there anything to paste, ie on the clipboard, when you get the error?
    If posting code please use code tags, see here.

+ 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. macro or vba code for copying and pasting data from one worksheet to another
    By jruiz13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-03-2011, 10:05 AM
  2. Replies: 3
    Last Post: 02-09-2011, 08:40 PM
  3. Code not copying and pasting data - basic error?
    By Kayote in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-23-2008, 10:57 AM
  4. Error in Code - Pasting Values
    By Janet H in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2005, 05:05 PM
  5. Excel 1004 Error When Pasting Special W/ Macro
    By setoFairfax in forum Excel General
    Replies: 2
    Last Post: 04-27-2005, 10:06 AM

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