+ Reply to Thread
Results 1 to 5 of 5

"Pastespecial Method of Range Class Failed" while trying to Transpose

  1. #1
    Registered User
    Join Date
    03-15-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    25

    "Pastespecial Method of Range Class Failed" while trying to Transpose

    Anyone see my problem here? Keep getting a "pastespecial method of range class failed" error. Trying to transpose columns F & G to Rows A1 & A2 on a different sheet.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: "Pastespecial Method of Range Class Failed" while trying to Transpose

    In your last line, make it Range ("A1").

    Also, ensure that LastRow is not greater than the number of columns in your sheet (is the file saved as .xlsm or as .xls ?)

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-15-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: "Pastespecial Method of Range Class Failed" while trying to Transpose

    I changed it to ("A1") and I still get teh error. The sheet "TeamReport" is newly created and it has nothing. It works fine when I manually cut and paste the cells. This particular sheet is an xlsx. The macro is running from an xlsm that is also open. Maybe I'm wrong but I don't see that as being an issue. I feel like I'm missing soemthign with the range or a syntax.

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: "Pastespecial Method of Range Class Failed" while trying to Transpose

    Can you Paste Special - Values when using Cut????

  5. #5
    Registered User
    Join Date
    03-15-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: "Pastespecial Method of Range Class Failed" while trying to Transpose

    Excellent point! You can't...and I figured that out shortly before your post. I changed it to copy and then used some more code to clear the cells after.

+ 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