+ Reply to Thread
Results 1 to 3 of 3

Paste method of worksheet class failed

  1. #1
    Registered User
    Join Date
    03-01-2005
    Posts
    2

    Paste method of worksheet class failed

    The following code produces the above error in this particular workbook. (only in Excel 2003)

    I've tried using pasting into the exact same size range and also the using only the leftmost cell when doing the paste.

    I've also tried unprotecting the sheet and workbook. Neither seems to improve the situation.

    Any ideas? Thanks in advance.


    Sheets("VIS Database - Exceptions").Select
    Range("A722:R728").Select
    Selection.Copy
    Sheets("Sheet1").Select
    Range("A1").Select
    ActiveWorkbook.Unprotect
    ActiveSheet.Paste

  2. #2
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    kavisara

    The problem appears to have something to do with
    ActiveWorkbook.Unprotect
    When I disable this command you code works ok

  3. #3
    Registered User
    Join Date
    03-01-2005
    Posts
    2

    Thumbs down Paste method of worksheet class failed

    Actually, I've tried it without as well and doesn't work.

    Any ideas??

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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