+ Reply to Thread
Results 1 to 8 of 8

Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"

  1. #1
    Registered User
    Join Date
    03-17-2014
    Location
    São Paulo , Brazil
    MS-Off Ver
    Excel 2007
    Posts
    4

    Question Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"

    Hi All,
    The macro "Generate_Pictures()" generates error-1004 "Unable to get the Paste property of the Pictures class" at line "ActiveSheet.Pictures.Paste(Link:=True).Name = "Picture1" .
    This error occurs on computers of a certain group company(MS-Excel 2010) and in the other companies(MS-Excel 2010/2007) that does not happen this error.
    I believe that this error is related to configurations or versions excel or windows, etc. ...

    Please Login or Register  to view this content.
    Could someone help me?

    Tks

    Portella
    Last edited by japortella; 03-17-2014 at 07:53 AM.

  2. #2
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"

    You're trying to set the name (.name) of the paste method. If you're pasting AND renaming it needs to be in two separate lines.
    Thanks,
    Solus


    Please remember the following:

    1. Use [code] code tags [/code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    Highlight the code in your post and press the # button in the toolbar.
    2. Show appreciation to those who have helped you by clicking below their posts.
    3. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

    "Slow is smooth, smooth is fast."

  3. #3
    Registered User
    Join Date
    03-17-2014
    Location
    São Paulo , Brazil
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"

    Hi Solus,
    Thanks for your review. this code was made during the implementation project by another team and I'm trying to accomplish the maintenance.
    This code works well with MS-Excel 2007/2010 but only a computer with MS-Excel 2010 this error occurs.
    But I'll implement your suggestion and test and I return about tests result.

    Tks

    Portella

  4. #4
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"

    Sorry. Was unable to replicate on Excel 2010 or 2007.

  5. #5
    Registered User
    Join Date
    03-17-2014
    Location
    São Paulo , Brazil
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"

    Hi Solus,
    Could you suggest a code sample ? I search for samples and I didnt find any sample with ".Name" at separate line .
    I am not a VBA consultant .
    Could you help me ?

    Tks

    Portella

  6. #6
    Forum Expert Solus Rankin's Avatar
    Join Date
    05-24-2013
    Location
    Hollywood, CA
    MS-Off Ver
    Win7 Office 2010 VS Express 2012
    Posts
    2,655

    Re: Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"

    Can you attach your workbook?

    I can't get the code to fail in my example workbook and I'm wondering if there is something in your workbook that is contributing.

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"

    Try this, which applies the Link after the paste.

    Please Login or Register  to view this content.
    The paste method of the pictures object acutal returns a reference to the new pasted picture so use of .Name is valid. It's does not appear to work on my xl2010 if the link argument is included.
    Cheers
    Andy
    www.andypope.info

  8. #8
    Registered User
    Join Date
    03-17-2014
    Location
    São Paulo , Brazil
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Ms-excel error '1004':"Unable to get the Paste property of the Pictures class"

    Hello Andy,
    We applied your suggestion at macro , but now the error is following:
    error 1004.jpg
    Translating: "Microsoft Excel can´t paste the data "

    Could you help me?

    Tks

    Portella

+ 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. Run-time error '1004': Unable to get the Insert property of the Pictures class
    By schmidt1962 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2013, 01:05 AM
  2. Error: "Unable to get the interior property of the range class."
    By wunderfisch in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-18-2013, 03:18 PM
  3. Run-time error '1004': Unable to set the Visible property of the Pictures class
    By wonderBOi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2012, 08:42 AM
  4. Run-time error 1004; "Unable to set the Hidden property of the Range Class"
    By danimal_time in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-22-2012, 01:06 PM
  5. Error "Unable to set the Visible property of the PivotItem class"
    By Greg M in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2010, 12:51 PM

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