+ Reply to Thread
Results 1 to 3 of 3

Problem with pasting picture in Excel 2016

  1. #1
    Registered User
    Join Date
    07-01-2013
    Location
    Bradford
    MS-Off Ver
    Excel 2010, Excel 2016
    Posts
    22

    Problem with pasting picture in Excel 2016

    I have written a macro that pastes a chart onto a graph. This worked fine when I was on Excel 2013 but it now crashes in Excel 2016.

    The code is as follows:

    Please Login or Register  to view this content.
    The error is Run time error '1004': Unable to get the Paste property of the Pictures class.

    This occurs on the line that says 'With copiedChart.Pictures.Paste'

    This all worked perfectly on Excel 2013 so can anyone help with what I need to change to make it work now.

    I have attached the full spreadsheet to explain the problem more clearly. The macro CreateGraphs is run with row numbers from the Data page eg 3 to 4.

    Hope this helps explain the problem better.

    Thanks
    Attached Files Attached Files
    Last edited by louiserace; 12-13-2016 at 04:19 AM.

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Problem with pasting picture in Excel 2016

    Hi louiserace,

    Very bad news. I ran your code on Excel 2016 (Office 365) and could not duplicate your error. When I entered valid row numbers, everything worked fine. I was able to generate a different 1004 Runtime error only when the row numbers I entered were out of range.

    Lewis

  3. #3
    Registered User
    Join Date
    07-01-2013
    Location
    Bradford
    MS-Off Ver
    Excel 2010, Excel 2016
    Posts
    22

    Re: Problem with pasting picture in Excel 2016

    Thanks for your help but Office 365 is not the same as Excel 2016.

    However I have now solved the problem by changing the faulty line to
    Please Login or Register  to view this content.

+ 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. Replies: 11
    Last Post: 06-24-2016, 03:52 AM
  2. Problem with nested if in excel 2016
    By araujo3rd in forum Excel General
    Replies: 2
    Last Post: 04-01-2016, 04:50 AM
  3. Help: Problem with Solver in Excel 2016
    By baballan in forum Excel General
    Replies: 0
    Last Post: 02-17-2016, 04:03 AM
  4. Excel 2016 Problem
    By lgchandana in forum Excel General
    Replies: 4
    Last Post: 12-16-2015, 06:07 AM
  5. Quality problem pasting picture in userform in Excel 2007
    By japiejum in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-18-2013, 04:41 AM
  6. Picture Pasting Problem
    By kufta4 in forum Excel General
    Replies: 1
    Last Post: 05-04-2011, 02:35 PM
  7. Problem while copying range as picture and pasting in Power Piont Slide
    By abiram01 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-10-2006, 02:51 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